Source code
Revision control
Copy as Markdown
Other Tools
// export-default should throw SyntaxError until it's implemented.
var caught = false;
try {
eval("export default 1;");
} catch (e) {
caught = true;
}
assertEq(caught, true);