nv-constexpr-simple-codify 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +0 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -312,12 +312,6 @@ function is_supported(o, rtrn_pair = true, seen = new WeakSet()) {
312
312
  return rtrn_pair ? [false, "Set/Map/WeakMap/WeakSet/WeakRef is not supported"] : false;
313
313
  }
314
314
 
315
- // 检查是否是普通对象(plain object)
316
- const proto = Object.getPrototypeOf(o);
317
- if (proto !== Object.prototype && proto !== null) {
318
- return rtrn_pair ? [false, "Custom class instance is not supported (only plain objects)"] : false;
319
- }
320
-
321
315
  // 递归检查每个属性值
322
316
  for (const key in o) {
323
317
  const res = is_supported(o[key], rtrn_pair, seen);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nv-constexpr-simple-codify",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"