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.
- package/index.js +0 -6
- 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);
|