comparison: js/src/jit-test/tests/basic/bug821470.js
js/src/jit-test/tests/basic/bug821470.js
- branch
- TOR_BUG_3246
- changeset 7
- 129ffea94266
equal
deleted
inserted
replaced
|
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) |