summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_8_5/regress/regress-620750.js
blob: 1bac543d544caf01b5dafd24198334db740cae4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */
var expect = true;
var actual = expect;

function f() {
    'use strict';
    for (; false; (0 for each (t in eval("")))) { }
}
fs = "" + f;
try {
    eval("(" + fs + ")");
} catch (e) {
    actual = false;
}

reportCompare(expect, actual, "ok");