-
Notifications
You must be signed in to change notification settings - Fork 476
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
Test that HasVarDeclaration
accounts for bindings created via eval()
#3914
Conversation
8f872fa
to
e1782e1
Compare
It appears (CI results) like The following snippet <!doctype html>
<meta charset="utf-8">
<script>eval("var foo");</script>
<script>let foo = 1;</script> correctly throws |
On the CI, both V8 and SM fail existing https://github.com/tc39/test262/blob/main/test/language/global-code/script-decl-lex-var.js test (JSC passes):
So this implies |
91f337e
to
e1782e1
Compare
test/annexB/language/eval-code/direct/script-decl-lex-collision.js
Outdated
Show resolved
Hide resolved
test/language/global-code/script-decl-lex-var-declared-via-eval.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
bcee172
to
6011109
Compare
JSC bug: Implement
HasVarDeclaration
abstract operation.