Skip to content

Global declarations created inside eval should not change configurability of existing properties #3404

@bterlson

Description

@bterlson
Object.defineProperty(this, 'f', {
  enumerable: true,
  writable: true,
  configurable: false
});

print(JSON.stringify(Object.getOwnPropertyDescriptor(this, 'f')));
eval('function f() { return 2222; }');
print(JSON.stringify(Object.getOwnPropertyDescriptor(this, 'f')));

Expected: descriptor doesn't change
Actual: descriptor changes from configurable false to configurable true

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions