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

Invalid JavaScript #5

Open
scottmboring opened this issue Apr 12, 2017 · 1 comment
Open

Invalid JavaScript #5

scottmboring opened this issue Apr 12, 2017 · 1 comment
Assignees

Comments

@scottmboring
Copy link

Invalid javascript at https://github.com/vic10us/cc-form/blob/master/cc-form.html#L166

this._debug({cardType, showBack});

I'm not sure what that line is supposed to do, but it's not valid and causes uglifyJS to break.

this._debug({cardType, showBack});
^
SyntaxError: Unexpected token punc «,», expected punc «:»
at JS_Parse_Error.get (eval at (/usr/local/lib/node_modules/uglify-js/tools/node.js:28:1), :86:23)
at /usr/local/lib/node_modules/uglify-js/bin/uglifyjs:384:39
at time_it (/usr/local/lib/node_modules/uglify-js/bin/uglifyjs:620:15)
at /usr/local/lib/node_modules/uglify-js/bin/uglifyjs:345:9
at tryToString (fs.js:455:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

@vic10us
Copy link
Owner

vic10us commented Jul 1, 2017

Thanks, it appears that uglify is not liking the object declarative syntax. I'll try to squeeze in time to fix it.

@vic10us vic10us self-assigned this Jul 1, 2017
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