We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This works:
class C { static x = 42 static y = this.x } (globalThis.print??console.log)(C.y) // 42
But this throws a C is not initialized ReferenceError:
C is not initialized
class C { static x = 42 static y = C.x // ReferenceError (but not in V8) }
test262 has tests that exercise the former but not the latter (that I can find) so I'm not 100% sure it's actually a bug but both work in V8.
The text was updated successfully, but these errors were encountered:
I think I figured it out. I'll open a pull request.
Sorry, something went wrong.
Expose class name to static initializers
32cbfe0
Fixes: quickjs-ng#138
0803eba
Expose class name to static initializers (#139)
8df335a
Fixes: #138
a8522c6
Fixes: quickjs-ng/quickjs#138
Successfully merging a pull request may close this issue.
This works:
But this throws a
C is not initialized
ReferenceError:test262 has tests that exercise the former but not the latter (that I can find) so I'm not 100% sure it's actually a bug but both work in V8.
The text was updated successfully, but these errors were encountered: