Skip to content

Commit 0273ada

Browse files
committed
fixup! bootstrap: freeze more intrinsics
1 parent 14591b7 commit 0273ada

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/internal/freeze_intrinsics.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ const {
9494
Symbol,
9595
SymbolIterator,
9696
SymbolMatchAll,
97+
SymbolPrototype,
9798
SyntaxError,
9899
SyntaxErrorPrototype,
99100
TypeError,
@@ -134,10 +135,11 @@ module.exports = function() {
134135
} = require('timers');
135136

136137
const intrinsicPrototypes = [
137-
// 21 Fundamental Objects
138+
// 20 Fundamental Objects
138139
ObjectPrototype, // 20.1
139140
FunctionPrototype, // 20.2
140141
BooleanPrototype, // 20.3
142+
SymbolPrototype, // 20.4
141143

142144
ErrorPrototype, // 20.5
143145
AggregateErrorPrototype,

test/parallel/test-freeze-intrinsics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ assert.throws(
3535
{
3636
assert.throws(() => { globalThis.globalThis = null; },
3737
{ name: 'TypeError' });
38-
assert.notStrictEqual(globalThis, null);
38+
assert.strictEqual(globalThis.globalThis, globalThis);
3939
}

0 commit comments

Comments
 (0)