Esm: private fields in node 10 with harmony flag

Created on 4 May 2018  路  1Comment  路  Source: standard-things/esm

```// test1.mjs
class A {
#x = 1

constructor(x) {
this.#x = x
}
x() {
return this.#x
}
}
`` node --harmony ./test.mjsNo errors node --harmony -r esm ./test.mjs` SyntaxError: Unexpected character '#'

enhancement

Most helpful comment

Hi @neyasov!

Yep, it's on my todo.

Update:

v3.0.30 is release 馃帀

>All comments

Hi @neyasov!

Yep, it's on my todo.

Update:

v3.0.30 is release 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnalborczyk picture dnalborczyk  路  3Comments

tunnckoCore picture tunnckoCore  路  3Comments

mAAdhaTTah picture mAAdhaTTah  路  3Comments

Mensu picture Mensu  路  3Comments

MVSICA-FICTA picture MVSICA-FICTA  路  3Comments