js/src/jit-test/tests/basic/bug821470.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:e6ad4989ce53
1 load(libdir + "asserts.js");
2
3 assertThrowsInstanceOf(function () {
4 eval("function x() { 'use strict'; const x = 4; x = 3; }");
5 }, TypeError);
6 assertThrowsInstanceOf(function () {
7 Function("'use strict'; const x = x = 5;");
8 }, TypeError)

mercurial