We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c947b2 commit 7bc26c2Copy full SHA for 7bc26c2
2 files changed
lib/internal/freeze_intrinsics.js
@@ -384,8 +384,8 @@ module.exports = function() {
384
defineProperty(this, prop, {
385
value: newValue,
386
writable: true,
387
- enumerable: desc.enumerable,
388
- configurable: desc.configurable
+ enumerable: true,
+ configurable: true
389
});
390
}
391
test/parallel/test-freeze-intrinsics.js
@@ -27,4 +27,6 @@ assert.throws(
27
const o = {};
28
o.toString = () => 'Custom toString';
29
assert.strictEqual(o + 'asdf', 'Custom toStringasdf');
30
+ assert.strictEqual(Object.getOwnPropertyDescriptor(o, 'toString').enumerable,
31
+ true);
32
0 commit comments