babel-plugin-prototype-prop-define
Advanced tools
Comparing version 2.4.2 to 2.5.0
{ | ||
"name": "babel-plugin-prototype-prop-define", | ||
"version": "2.4.2", | ||
"version": "2.5.0", | ||
"description": "Transform assignments to properties on built-in prototypes to Object.defineProperty calls", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -0,1 +1,3 @@ | ||
const arrItrProto = Object.getPrototypeOf([].values()) | ||
const primordialPropSet = new Set([ | ||
@@ -6,51 +8,4 @@ ...Object.getOwnPropertyNames(Object.prototype), | ||
...Object.getOwnPropertyNames(Error.prototype), | ||
...Object.getOwnPropertyNames(arrItrProto), | ||
]) | ||
// Set { | ||
// 'constructor', | ||
// '__defineGetter__', | ||
// '__defineSetter__', | ||
// 'hasOwnProperty', | ||
// '__lookupGetter__', | ||
// '__lookupSetter__', | ||
// 'isPrototypeOf', | ||
// 'propertyIsEnumerable', | ||
// 'toString', | ||
// 'valueOf', | ||
// '__proto__', | ||
// 'toLocaleString', | ||
// 'length', | ||
// 'concat', | ||
// 'find', | ||
// 'findIndex', | ||
// 'pop', | ||
// 'push', | ||
// 'shift', | ||
// 'unshift', | ||
// 'slice', | ||
// 'splice', | ||
// 'includes', | ||
// 'indexOf', | ||
// 'keys', | ||
// 'entries', | ||
// 'forEach', | ||
// 'filter', | ||
// 'map', | ||
// 'every', | ||
// 'some', | ||
// 'reduce', | ||
// 'reduceRight', | ||
// 'join', | ||
// 'reverse', | ||
// 'sort', | ||
// 'lastIndexOf', | ||
// 'copyWithin', | ||
// 'fill', | ||
// 'values', | ||
// 'name', | ||
// 'arguments', | ||
// 'caller', | ||
// 'apply', | ||
// 'bind', | ||
// 'call', | ||
// 'message' } | ||
@@ -62,11 +17,5 @@ const primordialSymbolSet = new Set([ | ||
...Object.getOwnPropertySymbols(Error.prototype), | ||
...Object.getOwnPropertySymbols(arrItrProto), | ||
Symbol.asyncIterator, | ||
Symbol.toStringTag, | ||
].map(symbol => symbol.toString().slice(14,-1))) | ||
// Set { | ||
// 'iterator', | ||
// 'unscopables', | ||
// 'hasInstance', | ||
// 'asyncIterator', | ||
// 'toStringTag' } | ||
@@ -73,0 +22,0 @@ const SKIP_PARSE_FLAG = 'prototype-prop-define-skip' |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35645
366