Searched refs:eval (Results 1 - 25 of 476) sorted by relevance

1234567891011>>

/external/v8/test/mjsunit/regress/
H A Dregress-1546.js32 eval("/*\u822a/ */");
H A Dregress-974.js32 eval("(function(){try { } catch(x) { } finally { gc() }})")();
H A Dregress-113924.js30 eval("var a = new Object(10); a[2] += 7;");
H A Dregress-189.js33 eval("delete x; const x = 32");
H A Dregress-260.js32 function test() { eval("while(!function () { var x; });"); }
H A Dregress-990205.js33 // Force eager compilation of x through the use of eval. The break
35 return eval("while(0) function x() { break; }; 42");
H A Dregress-1126.js32 eval('--');
H A Dregress-1528.js38 eval('const x = 7');
H A Dregress-35.js29 eval("result = 42; while(true)break");
32 eval("result = 87; while(false)continue");
H A Dregress-682649.js30 assertEquals(this.toString(), eval("this.toString()"));
H A Dregress-crbug-135066.js31 // Test strict eval in global context.
32 assertEquals(23, eval(
43 // Test default eval in strict context.
46 return eval(
H A Dregress-freeze-setter.js7 eval('"use strict"; x = 20;');
H A Dregress-124.js31 assertEquals("[object global]", eval("this.toString()"));
32 assertEquals("[object Undefined]", eval("toString()"));
34 assertEquals("[object global]", eval("var f; this.toString()"));
35 assertEquals("[object Undefined]", eval("var f; toString()"));
42 assertEquals("[object global]", eval("this.toString()"));
43 assertEquals("[object Undefined]", eval("toString()"));
45 assertEquals("[object global]", eval("var f; this.toString()"));
46 assertEquals("[object Undefined]", eval("var f; toString()"));
48 assertEquals("[object Undefined]", eval("f()"));
51 assertEquals("[object Arguments]", eval("argument
[all...]
H A Dregress-186.js28 // Make sure that eval can introduce a local variable called __proto__.
43 eval("var __proto__ = o");
45 eval("var x = 27");
47 assertEquals(o, eval("__proto__"));
52 eval("const __proto__ = o");
54 eval("var x = 27");
56 assertEquals(o, eval("__proto__"));
61 eval("__proto__ = o");
63 eval("x = 27");
66 assertEquals(o, eval("__proto_
[all...]
H A Dregress-220.js28 function foo(f) { eval(f); }
H A Dregress-496.js30 // Tests that we do not treat the unaliased eval call in g as an
31 // aliased call to eval.
34 function f() { return eval; }
35 function g() { var x = 44; return eval("x"); }
/external/v8/test/preparser/
H A Dnonstrict-eval.js30 var eval = 42; variable
31 eval = eval++;
32 eval += --eval;
33 eval -= ++eval;
34 eval *= eval--;
35 function eval(eva function
44 var eval = 42; variable
[all...]
/external/v8/test/webkit/
H A Dexception-with-handler-inside-eval-with-dynamic-scope.js24 description('This test makes sure stack unwinding works correctly when it occurs inside an eval contained in a dynamic scope.');
29 eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }");
31 eval("try { with({test:'innermost scope'}) throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }");
33 eval("with ({test:'innermost scope'}) try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
35 with ({test:'innermost scope'}) eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
38 eval("try { throw ''; } finally { result = test; shouldBe('result', '\"inner scope\"'); result = null; undeclared; }");
43 eval("try { with({test:'innermost scope'}) throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }");
45 eval("with ({test:'innermost scope'}) try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
47 with ({test:'innermost scope'}) eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }");
51 eval("tr
[all...]
H A Dglobal-resolve-through-eval.js24 description("Make sure we do a correct property resolution of a global object property when contained by eval.");
28 var accessGlobal = (function() { return eval("var pass=true; (function(){ return pass; })"); })();
29 var accessLocal = (function() { var pass = false; return (function() { return eval("var pass=true; (function(){ return pass; })"); })(); })();
/external/v8/test/mjsunit/
H A Ddelete-in-eval.js28 // Should be able to delete properties in the context through eval().
30 assertTrue(eval("delete XXX")); // non-existing
31 assertTrue(eval("delete tmp")); // existing
H A Ddo-not-strip-fc.js30 assertEquals(7, eval("'foo\u200dbar'").length);
31 assertEquals(7, eval("'foo\u200cbar'").length);
H A Ddeclare-locally.js41 eval("assertEquals(undefined, foo); var foo = 87;");
44 eval("assertEquals(undefined, bar); const bar = 42;");
H A Dglobal-load-from-nested-eval.js28 // Tests global loads from nested eval.
34 eval('eval(' + source +')');
41 eval('eval(' + source +')');
46 // Shadow variable with an eval-introduced variable.
48 eval('var x = 1');
50 eval('eval('+ source + ')');
58 eval('
[all...]
/external/v8/test/webkit/fast/js/
H A Dend-in-string-escape.js29 eval('"\\');
/external/v8/test/mjsunit/compiler/
H A Dproperty-simple.js35 assertEquals(8, eval(code));
39 assertEquals(9, eval(code));

Completed in 211 milliseconds

1234567891011>>