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

'EcmaScript.NET.EcmaScriptRuntimeException'{"syntax error"} #346

Open
crwagner opened this issue Apr 17, 2018 · 1 comment
Open

'EcmaScript.NET.EcmaScriptRuntimeException'{"syntax error"} #346

crwagner opened this issue Apr 17, 2018 · 1 comment

Comments

@crwagner
Copy link

I'm getting this exception when proccessing the following javascript function

arrayGroupBy: function(xs, key) {
	return xs.reduce(function(rv, x) {
		var v = key instanceof Function ? key(x) : x[key];
		// this line below throws the exception
		var el = rv.find((r) => r && r.key === v);
		if (el) {
			el.values.push(x);
		} else {
			rv.push({ key: v, values: [x] });
		}
		return rv;
	}, []);
}
@AlexCuse
Copy link
Collaborator

What version are you using? This is likely a YUI / ECMAScript issue that might be resolved by updating SquishIt.

I usually prefer YUI but you can also try using the AjaxMin minifiers.

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