Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node v4.9.1 supports "class" statement #53

Open
borisovg opened this issue Jul 8, 2018 · 2 comments
Open

Node v4.9.1 supports "class" statement #53

borisovg opened this issue Jul 8, 2018 · 2 comments

Comments

@borisovg
Copy link

borisovg commented Jul 8, 2018

According to the Node.green table, Node 4.9.1 does not support classes, but it does?

borisov@glossy:~ $ sudo docker run -it mhart/alpine-node:4 node
> process.versions
{ http_parser: '2.8.0',
  node: '4.9.1',
  v8: '4.5.103.53',
  uv: '1.9.1',
  zlib: '1.2.11',
  ares: '1.10.1-DEV',
  modules: '46',
  openssl: '1.0.2o' }
> class Foo {
... constructor () {
..... console.log('FOO');
..... }
... }
[Function: Foo]
> new Foo();
FOO
Foo {}
>
@borisovg borisovg changed the title Node v4.9.1 supports classes Node v4.9.1 supports "class" statement Jul 8, 2018
@borisovg
Copy link
Author

borisovg commented Jul 8, 2018

Guessing this is another case of ES6 things supported in "strict" mode?

@medikoo
Copy link

medikoo commented May 20, 2019

I've stumbled on that as well.

It's quite a bug on node.green side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants