-
Notifications
You must be signed in to change notification settings - Fork 475
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
add a test for eval?.(code)
#2667
Conversation
Calling implementors to check this out: @syg @codehag @anba @kmiller68 @rkirsling. I hope we can avoid a new de-facto direct eval. |
@mysticatea (thank you!) filed https://bugzilla.mozilla.org/show_bug.cgi?id=1647169 against SpiderMonkey, which we already fixed today. |
I actually feel like this would be the least confusing if it were a direct eval. |
I'm currently reviewing the current tests for Optional Chaining. I can update the tests from indirect to direct eval if we have a matching PR in ECMA-262. Just let me know! |
Test case will be added through the next test262 sync: - tc39/test262#2667 Differential Revision: https://phabricator.services.mozilla.com/D80416
Test case will be added through the next test262 sync: - tc39/test262#2667 Differential Revision: https://phabricator.services.mozilla.com/D80416
To echo @syg, I find it surprising (both as a reviewer and as an implementer) that this would be an exception to the "code with tc39/proposal-optional-chaining#21 suggests that this was not an accident, but given that browser-hosted engines all implemented and shipped what we expected the spec to say, I believe we need a proper discussion in order to resolve this divergence (even if we decide to leave the spec as it is). I'm not sure how this discussion should be conducted (or if there's a good precedent for such a situation)—does a spec issue thread suffice or should we add a topic to the next meeting agenda? |
I believe so. We will need someone to champion this work at ECMA-262. For this specific change I believe it needs a Normative PR making sure that |
We can have the discussion without the normative PR, but filing it does accelerate things in the event the change gets consensus. |
This PR adds a test for
eval?.(code)
. It's indirect eval.