summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-624199.js
blob: 09eda4f5c3def1dd6124e800d2ca6c200e5f5711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */
function roundTrip(f) {
    try {
        eval(uneval(f));
        return true;
    } catch (e) {
        return '' + e;
    }
}

function f() { if (true) { 'use strict'; } var eval; }
assertEq(roundTrip(f), true);

reportCompare(true,true);