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, {
|
defineProperty(this, prop, {
|
||||||
value: newValue,
|
value: newValue,
|
||||||
writable: true,
|
writable: true,
|
||||||
enumerable: desc.enumerable,
|
enumerable: true,
|
||||||
configurable: desc.configurable
|
configurable: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,4 +27,6 @@ assert.throws(
|
|||||||
const o = {};
|
const o = {};
|
||||||
o.toString = () => 'Custom toString';
|
o.toString = () => 'Custom toString';
|
||||||
assert.strictEqual(o + 'asdf', 'Custom toStringasdf');
|
assert.strictEqual(o + 'asdf', 'Custom toStringasdf');
|
||||||
|
assert.strictEqual(Object.getOwnPropertyDescriptor(o, 'toString').enumerable,
|
||||||
|
true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user