fibjs/fibjs

Class static initialization blocks SyntaxError

forchid opened this issue · 4 comments

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
>

This is caused by an earlier v8 version, and the next v8 upgrade will fix it.

@xicilion Thanks!

it's done. 987aa5b