Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifies Object #12

Open
cpcallen opened this issue Aug 24, 2018 · 0 comments
Open

Modifies Object #12

cpcallen opened this issue Aug 24, 2018 · 0 comments

Comments

@cpcallen
Copy link

Calling safeEval causes a constructor property to be added to Object in the caller's realm:

console.log(Object.getOwnPropertyDescriptor(Object, 'constructor'));
console.log(safeEval('42'));
console.log(Object.getOwnPropertyDescriptor(Object, 'constructor'));

Output:

undefined
42
{ value: undefined,
  writable: true,
  enumerable: true,
  configurable: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant