Class static initialization blocks SyntaxError
forchid opened this issue · 4 comments
forchid commented
Issue: The ES6 feature "Class static initialization blocks" not supported in the current fibjs, but it's supported in node.
Version: fibjs v0.35.0, node v16.13.0.
Test case in fibjs
> class Test {
... static {}
repl:2:8
static {}
^
SyntaxError: Unexpected token '{'
>
Test case in node
> class Test {
... static {}
... }
undefined
>
Hi-Rube commented
谢谢哦! 啦啦啦啦啦啦啦! 啊哈哈哈哈哈!
xicilion commented
This is caused by an earlier v8 version, and the next v8 upgrade will fix it.