marsupialtail / quokka

Making data lake work for time series
https://marsupialtail.github.io/quokka/
Apache License 2.0
1.14k stars 60 forks source link

Unexpected token ',' when using together an iterator and a private field #60

Closed Filyus closed 1 year ago

Filyus commented 1 year ago

Code:

class MyClass {
  #value: number;
  [Symbol.iterator]() {

  }
}
new MyClass();

Output:

​​​​​Quokka PRO 'Untitled-1.ts' (node: v18.14.2, TypeScript: v5.1.6, plugins: jsdom-quokka-plugin)​​​​
.\quokka.js:8 
    [_MyClass_value = new WeakMap(), Symbol.iterator]() { 
                                   ^ 
 
SyntaxError: Unexpected token ',' 
    at internalCompileFunction (node:internal/vm:73:18) 
    at wrapSafe (node:internal/modules/cjs/loader:1176:20) 
    at Module._compile (node:internal/modules/cjs/loader:1218:27)