summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug1169850.js
blob: 3f6fbeef93de40ed2113f398c296e12ee060e81e (plain)
1
2
3
4
5
6
7
8
9
// export-default should throw SyntaxError until it's implemented.

var caught = false;
try {
  eval("export default 1;");
} catch (e) {
  caught = true;
}
assertEq(caught, true);