Closed Filyus closed 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)
Code:
Output: