X Tutup
The Wayback Machine - https://web.archive.org/web/20220320001348/https://github.com/nodejs/node/commit/7bc26c2e8c
Skip to content
Permalink
Browse files
bootstrap: correct --frozen-intrinsics override fix
PR-URL: #35041
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
guybedford authored and addaleax committed Sep 22, 2020
1 parent 7c947b2 commit 7bc26c2e8c6bc7a6b6fdc4ee63fffb02df20050d
Showing with 4 additions and 2 deletions.
  1. +2 −2 lib/internal/freeze_intrinsics.js
  2. +2 −0 test/parallel/test-freeze-intrinsics.js
@@ -384,8 +384,8 @@ module.exports = function() {
defineProperty(this, prop, {
value: newValue,
writable: true,
enumerable: desc.enumerable,
configurable: desc.configurable
enumerable: true,
configurable: true
});
}
}
@@ -27,4 +27,6 @@ assert.throws(
const o = {};
o.toString = () => 'Custom toString';
assert.strictEqual(o + 'asdf', 'Custom toStringasdf');
assert.strictEqual(Object.getOwnPropertyDescriptor(o, 'toString').enumerable,
true);
}

0 comments on commit 7bc26c2

Please sign in to comment.
X Tutup