Skip to content

Commit

Permalink
Remove Object.prototype properties from builtin and es* globals (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Mar 25, 2024
1 parent 9e2e259 commit 753b2b2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 92 deletions.
7 changes: 0 additions & 7 deletions data/builtin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default {
BigInt64Array: false,
BigUint64Array: false,
Boolean: false,
constructor: false,
DataView: false,
Date: false,
decodeURI: false,
Expand All @@ -26,15 +25,13 @@ export default {
Float64Array: false,
Function: false,
globalThis: false,
hasOwnProperty: false,
Infinity: false,
Int16Array: false,
Int32Array: false,
Int8Array: false,
Intl: false,
isFinite: false,
isNaN: false,
isPrototypeOf: false,
JSON: false,
Map: false,
Math: false,
Expand All @@ -44,7 +41,6 @@ export default {
parseFloat: false,
parseInt: false,
Promise: false,
propertyIsEnumerable: false,
Proxy: false,
RangeError: false,
ReferenceError: false,
Expand All @@ -55,8 +51,6 @@ export default {
String: false,
Symbol: false,
SyntaxError: false,
toLocaleString: false,
toString: false,
TypeError: false,
Uint16Array: false,
Uint32Array: false,
Expand All @@ -65,7 +59,6 @@ export default {
undefined: false,
unescape: false,
URIError: false,
valueOf: false,
WeakMap: false,
WeakRef: false,
WeakSet: false,
Expand Down
7 changes: 0 additions & 7 deletions data/es5.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default {
Array: false,
Boolean: false,
constructor: false,
Date: false,
decodeURI: false,
decodeURIComponent: false,
Expand All @@ -12,29 +11,23 @@ export default {
eval: false,
EvalError: false,
Function: false,
hasOwnProperty: false,
Infinity: false,
isFinite: false,
isNaN: false,
isPrototypeOf: false,
JSON: false,
Math: false,
NaN: false,
Number: false,
Object: false,
parseFloat: false,
parseInt: false,
propertyIsEnumerable: false,
RangeError: false,
ReferenceError: false,
RegExp: false,
String: false,
SyntaxError: false,
toLocaleString: false,
toString: false,
TypeError: false,
undefined: false,
unescape: false,
URIError: false,
valueOf: false,
};
44 changes: 1 addition & 43 deletions globals.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"BigInt64Array": false,
"BigUint64Array": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
Expand All @@ -24,15 +23,13 @@
"Float64Array": false,
"Function": false,
"globalThis": false,
"hasOwnProperty": false,
"Infinity": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"Intl": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Map": false,
"Math": false,
Expand All @@ -42,7 +39,6 @@
"parseFloat": false,
"parseInt": false,
"Promise": false,
"propertyIsEnumerable": false,
"Proxy": false,
"RangeError": false,
"ReferenceError": false,
Expand All @@ -53,8 +49,6 @@
"String": false,
"Symbol": false,
"SyntaxError": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"Uint16Array": false,
"Uint32Array": false,
Expand All @@ -63,15 +57,13 @@
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false,
"WeakMap": false,
"WeakRef": false,
"WeakSet": false
},
"es5": {
"Array": false,
"Boolean": false,
"constructor": false,
"Date": false,
"decodeURI": false,
"decodeURIComponent": false,
Expand All @@ -82,37 +74,30 @@
"eval": false,
"EvalError": false,
"Function": false,
"hasOwnProperty": false,
"Infinity": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Math": false,
"NaN": false,
"Number": false,
"Object": false,
"parseFloat": false,
"parseInt": false,
"propertyIsEnumerable": false,
"RangeError": false,
"ReferenceError": false,
"RegExp": false,
"String": false,
"SyntaxError": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false
"URIError": false
},
"es2015": {
"Array": false,
"ArrayBuffer": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
Expand All @@ -126,15 +111,13 @@
"Float32Array": false,
"Float64Array": false,
"Function": false,
"hasOwnProperty": false,
"Infinity": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"Intl": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Map": false,
"Math": false,
Expand All @@ -144,7 +127,6 @@
"parseFloat": false,
"parseInt": false,
"Promise": false,
"propertyIsEnumerable": false,
"Proxy": false,
"RangeError": false,
"ReferenceError": false,
Expand All @@ -154,8 +136,6 @@
"String": false,
"Symbol": false,
"SyntaxError": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"Uint16Array": false,
"Uint32Array": false,
Expand All @@ -164,7 +144,6 @@
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false,
"WeakMap": false,
"WeakSet": false
},
Expand All @@ -173,7 +152,6 @@
"ArrayBuffer": false,
"Atomics": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
Expand All @@ -187,15 +165,13 @@
"Float32Array": false,
"Float64Array": false,
"Function": false,
"hasOwnProperty": false,
"Infinity": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"Intl": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Map": false,
"Math": false,
Expand All @@ -205,7 +181,6 @@
"parseFloat": false,
"parseInt": false,
"Promise": false,
"propertyIsEnumerable": false,
"Proxy": false,
"RangeError": false,
"ReferenceError": false,
Expand All @@ -216,8 +191,6 @@
"String": false,
"Symbol": false,
"SyntaxError": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"Uint16Array": false,
"Uint32Array": false,
Expand All @@ -226,7 +199,6 @@
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false,
"WeakMap": false,
"WeakSet": false
},
Expand All @@ -238,7 +210,6 @@
"BigInt64Array": false,
"BigUint64Array": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
Expand All @@ -253,15 +224,13 @@
"Float64Array": false,
"Function": false,
"globalThis": false,
"hasOwnProperty": false,
"Infinity": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"Intl": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Map": false,
"Math": false,
Expand All @@ -271,7 +240,6 @@
"parseFloat": false,
"parseInt": false,
"Promise": false,
"propertyIsEnumerable": false,
"Proxy": false,
"RangeError": false,
"ReferenceError": false,
Expand All @@ -282,8 +250,6 @@
"String": false,
"Symbol": false,
"SyntaxError": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"Uint16Array": false,
"Uint32Array": false,
Expand All @@ -292,7 +258,6 @@
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false,
"WeakMap": false,
"WeakSet": false
},
Expand All @@ -305,7 +270,6 @@
"BigInt64Array": false,
"BigUint64Array": false,
"Boolean": false,
"constructor": false,
"DataView": false,
"Date": false,
"decodeURI": false,
Expand All @@ -321,15 +285,13 @@
"Float64Array": false,
"Function": false,
"globalThis": false,
"hasOwnProperty": false,
"Infinity": false,
"Int16Array": false,
"Int32Array": false,
"Int8Array": false,
"Intl": false,
"isFinite": false,
"isNaN": false,
"isPrototypeOf": false,
"JSON": false,
"Map": false,
"Math": false,
Expand All @@ -339,7 +301,6 @@
"parseFloat": false,
"parseInt": false,
"Promise": false,
"propertyIsEnumerable": false,
"Proxy": false,
"RangeError": false,
"ReferenceError": false,
Expand All @@ -350,8 +311,6 @@
"String": false,
"Symbol": false,
"SyntaxError": false,
"toLocaleString": false,
"toString": false,
"TypeError": false,
"Uint16Array": false,
"Uint32Array": false,
Expand All @@ -360,7 +319,6 @@
"undefined": false,
"unescape": false,
"URIError": false,
"valueOf": false,
"WeakMap": false,
"WeakRef": false,
"WeakSet": false
Expand Down
Loading

0 comments on commit 753b2b2

Please sign in to comment.