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

Module state recorder does not allow to (re)define certain globals #43

Open
rksm opened this issue Oct 19, 2017 · 0 comments
Open

Module state recorder does not allow to (re)define certain globals #43

rksm opened this issue Oct 19, 2017 · 0 comments

Comments

@rksm
Copy link
Member

rksm commented Oct 19, 2017

E.g. var name = "foo" as a top level variable throws an Error. This is b/c the module.recorder objects actually inherit from the global object, window in the browser. The global (at least in browsers in nodejs it sees to work) has a guard that certain names are not allowed to be redefined. This guard even applies when used in an object inheriting from the global, hence the problem.

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