-
Notifications
You must be signed in to change notification settings - Fork 5
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
Optional call returns references #4
Comments
Sorry, I messed up the example (I think the cascading behavior is confusing me). let obj = {};
obj.foo?.() = 1; (I'll fix the issue description as well.) |
Assigning to rvalue allowed now? |
I haven’t yet much explored the use cases for PutValue on a Nil Reference. One could indeed throw an error instead of doing nothing, in case one thinks that it is a better semantic. |
Those forms are removed. They will throw the same error as |
Previously EvaluateDirectCall would either throw or return an ECMAScript language value (i.e. not a Reference), but now it can return a NilReference. And since PutValue is a no-op for NilReferences, it looks like this would be allowed:
Whereas I think we'd want a ReferenceError here.
The text was updated successfully, but these errors were encountered: