mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
bootstrap: correct --frozen-intrinsics override fix
PR-URL: https://github.com/nodejs/node/pull/35041 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
7c947b26e8
commit
7bc26c2e8c
2 files changed
+4
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user