Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
*/
function checkSyntaxError(code) {
var error;
try {
eval(code);
} catch (e) {
error = e;
}
assertEq(error.name, 'SyntaxError');
}
checkSyntaxError('"use strict"; *');
checkSyntaxError('"use strict"; @7');