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

MIME breaking with 'class' declaration as it is without 'use strict mode' #170

Closed
ryu047 opened this Issue Sep 13, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@ryu047

ryu047 commented Sep 13, 2017

MIME module is breaking at class declaration, as it is expecting use strict mode.

Error states:

class Mime {
^^^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

@ryu047 ryu047 changed the title from MIME breaking with `class declaration` as it is without `use strict mode` to MIME breaking with 'class' declaration as it is without 'use strict mode' Sep 13, 2017

@broofa

This comment has been minimized.

Show comment
Hide comment
@broofa

broofa Sep 13, 2017

Owner

Looks like this is a node version issue? I'm using ES6 class, let, const, and template literals in v2. You'll need node@>=6.

I can add 'use strict'; (and may do so for forms sake), but it just surfaces other ES6-related issues.

Owner

broofa commented Sep 13, 2017

Looks like this is a node version issue? I'm using ES6 class, let, const, and template literals in v2. You'll need node@>=6.

I can add 'use strict'; (and may do so for forms sake), but it just surfaces other ES6-related issues.

@broofa broofa closed this in 930187b Sep 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment