summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_8_5/regress/regress-555246-0.js
blob: 2a4efe0522ea68742b608d920147ff95ff7e5e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * Contributor: Jason Orendorff
 */

if (typeof evalcx == 'function') {
    var cx = evalcx("");
    evalcx("function f() { return this; }", cx);
    var f = cx.f;
    assertEq(f(), cx);
}

reportCompare(0, 0, "");