mirror of https://github.com/nodejs/node.git
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:
parent
cc60347f02
commit
04865cf6f0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue