You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
/Users/daniel/dev/repros/esm/800/index.js:1
SyntaxError: Unexpected character '#' (10:9)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
also tested latest master with #787 and 3c50b83 but same result.
The text was updated successfully, but these errors were encountered:
static props is a companion proposal to the class fields proposal.
yeah, that could be. although both are supported by V8 and node.js v12 (commonjs) without a flag. the reference to #800 was just that I tried to look into it (but it was working just fine), and while I was at it, I tried static (pub+priv) as well to be sure.
on a different note, I wonder if it would be easier/better to use the acorn plugins instead (for anything stage 3 (bigint, class fields, static, etc. )?
essentially those:
"acorn-dynamic-import""acorn-import-meta""acorn-bigint""acorn-class-fields""acorn-static-class-features""acorn-private-methods"// maybe not, since not in V8, node.js yet"acorn-export-ns-from"
We plan on shipping support for private methods and accessors soon.
dnalborczyk
changed the title
SyntaxError with public and private static class properties in node.js v12
SyntaxError with public and private static class fields in node.js v12
May 6, 2019
was just trying to look into: #800
node v12.1.0
esm: 3.2.22
repro:
also tested latest master with #787 and 3c50b83 but same result.
The text was updated successfully, but these errors were encountered: