Source code
Revision control
Copy as Markdown
Other Tools
/*
* Any copyright is dedicated to the Public Domain.
* Contributor: Jason Orendorff
*/
if (typeof evalcx == 'function') {
var cx = evalcx("");
evalcx("function f() { return this; }", cx);
f = cx.f;
assertEq(f(), cx);
evalcx("function g() { 'use strict'; return this; }", cx);
g = cx.g;
assertEq(g(), undefined);
}
reportCompare(0, 0, "ok");