-
Notifications
You must be signed in to change notification settings - Fork 923
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
delete a?.b does not take effect #103
Comments
test code let a = {b:true};
delete a?.b;
console.log(JSON.stringify(a)); outputs:
Run this code with node, and the output will be:
|
The use case for this will be
where a.b may not exist. |
This should definitely be fixed. Optional chaining, as part of ECMA2020, must also work for 'delete'. |
TooTallNate
pushed a commit
to TooTallNate/quickjs
that referenced
this issue
Dec 18, 2023
bellard
pushed a commit
that referenced
this issue
Jan 9, 2024
fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: