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 2020-09-03 15:31:32 -07:00 committed by Rich Trott
parent cc60347f02
commit 04865cf6f0
2 changed files with 4 additions and 2 deletions

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
});
}
}

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);
}