js/src/tests/js1_8_5/regress/regress-624199.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:d8f6932bc49c
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 */
5 function roundTrip(f) {
6 try {
7 eval(uneval(f));
8 return true;
9 } catch (e) {
10 return '' + e;
11 }
12 }
13
14 function f() { if (true) { 'use strict'; } var eval; }
15 assertEq(roundTrip(f), true);
16
17 reportCompare(true,true);

mercurial