Skip to content

Commit

Permalink
fixup! bootstrap: freeze more intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Apr 18, 2021
1 parent 14591b7 commit 0273ada
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/internal/freeze_intrinsics.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const {
Symbol,
SymbolIterator,
SymbolMatchAll,
SymbolPrototype,
SyntaxError,
SyntaxErrorPrototype,
TypeError,
Expand Down Expand Up @@ -134,10 +135,11 @@ module.exports = function() {
} = require('timers');

const intrinsicPrototypes = [
// 21 Fundamental Objects
// 20 Fundamental Objects
ObjectPrototype, // 20.1
FunctionPrototype, // 20.2
BooleanPrototype, // 20.3
SymbolPrototype, // 20.4

ErrorPrototype, // 20.5
AggregateErrorPrototype,
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-freeze-intrinsics.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ assert.throws(
{
assert.throws(() => { globalThis.globalThis = null; },
{ name: 'TypeError' });
assert.notStrictEqual(globalThis, null);
assert.strictEqual(globalThis.globalThis, globalThis);
}

0 comments on commit 0273ada

Please sign in to comment.