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

ES6 syntax error #5

Closed
saadshahd opened this issue Dec 8, 2015 · 3 comments
Closed

ES6 syntax error #5

saadshahd opened this issue Dec 8, 2015 · 3 comments

Comments

@saadshahd
Copy link

Using ambi with node v5.0.0/v0.10 popups a syntax error can you please explain ?

(function (exports, require, module, __filename, __dirname) { export default function ambi (method, ...args) {
                                                              ^^^^^^

SyntaxError: Unexpected token export
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:404:25)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
    at node.js:972:3
@balupton
Copy link
Member

balupton commented Dec 9, 2015

Due to bevry/domain-browser#7 (comment)

Will fix over the week hopefully. Does it still work? As it should have a fallback for this.

Node 0.10 isn't supported by us anymore.

@saadshahd
Copy link
Author

Thanks, yes it does.

@balupton
Copy link
Member

balupton commented Dec 9, 2015

Released v2.4.0 that should fix this. Thanks for reporting!

@balupton balupton closed this as completed Dec 9, 2015
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