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:
Guy Bedford authored and Anna Henningsen committed 2020-09-22 19:56:54 +02:00
1 parent 7c947b26e8
commit 7bc26c2e8c
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -384,8 +384,8 @@ module.exports = function() {
defineProperty(this, prop, {
value: newValue,
writable: true,
enumerable: desc.enumerable,
configurable: desc.configurable
enumerable: true,
configurable: true
});
}
}
+2
View File
@@ -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);
}