summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/extensions/uneval/regress-624199.js
blob: 2634600f124193ac0f60910cdeafe64b4c7b1e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |reftest| skip-if(!this.uneval)

/*
 * 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);