description( "This tests that function inlining in the DFG JIT doesn't get confused by different global objects." ); if (window.layoutTestController) layoutTestController.waitUntilDone(); var b = 321; function foo(a) { return a + b; } shouldBe("foo(3)", "324"); function done(value) { var expected = 5770500; if (value == expected) testPassed("done() called with " + expected); else testFailed("done() is " + value + " and should be " + expected + "."); layoutTestController.notifyDone(); } function doit() { document.getElementById("frameparent").innerHTML = ""; document.getElementById("frameparent").innerHTML = "