Home | History | Annotate | Download | only in mjsunit

Lines Matching full:eval

28 // Tests global loads from eval inside of a with statement.
34 eval(source);
38 // Test shadowing in eval scope.
42 // Test shadowing in local scope inside an eval scope.
46 // Test shadowing in local scope inside an eval scope. Deeper nesting
51 // Test shadowing in local scope inside an eval scope with eval calls in the eval scopes.
52 test({ x: 42 }, "function f() { eval('1'); assertEquals(42, x) }; f();");
53 test({ y: 42 }, "function f() { eval('1'); assertEquals(27, x) }; f();");
55 // Test shadowing in local scope inside an eval scope with eval calls
56 // in the eval scopes. Deeper nesting this time.
57 test({ x: 42 }, "function f() { function g() { eval('1'); assertEquals(42, x) }; g() }; f();");
58 test({ y: 42 }, "function f() { function g() { eval('1'); assertEquals(27, x) }; g() }; f();");