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

Does not seem to support "..." #4

Open
jungalwala opened this issue Jun 6, 2022 · 0 comments
Open

Does not seem to support "..." #4

jungalwala opened this issue Jun 6, 2022 · 0 comments

Comments

@jungalwala
Copy link

Here is some valid Coffeescript code:

user = {
    name: 'Werner Heisenberg',
    occupation: 'theoretical physicist'
}

currentUser = { user..., status: 'Uncertain' }
console.log(JSON.stringify(currentUser, null, 4))

When I try and run it through splitshot, I get the following error:

/usr/local/lib/node_modules/@hulu/splitshot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:54
        throw helpers.updateSyntaxError(err, code, options.filename);
        ^

[[stdin]:6:21: error: unexpected ...
currentUser = { user..., status: 'Uncertain' }
                    ^^^] {
  location: { first_line: 5, first_column: 20, last_line: 5, last_column: 22 },
  toString: [Function: syntaxErrorToString],
  code: 'user = {\n' +
    "    name: 'Werner Heisenberg',\n" +
    "    occupation: 'theoretical physicist'\n" +
    '}\n' +
    '\n' +
    "currentUser = { user..., status: 'Uncertain' }\n" +
    'console.log(JSON.stringify(currentUser, null, 4))',
  filename: undefined
}
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

1 participant