Home | History | Annotate | Download | only in cctest

Lines Matching defs:function

84   virtual Local<ObjectTemplate> GetHolder(Local<FunctionTemplate> function) {
85 return function->InstanceTemplate();
121 Local<FunctionTemplate> function = FunctionTemplate::New(isolate);
123 GetHolder(function)->SetHandler(v8::NamedPropertyHandlerConfiguration(
127 function->InstanceTemplate(),
248 context.Check("function x() { }; x",
299 context.Check("function x() { }; x",
382 context.Check("function x() { }; x",
414 virtual Local<ObjectTemplate> GetHolder(Local<FunctionTemplate> function) {
415 return function->PrototypeTemplate();
474 virtual Local<ObjectTemplate> GetHolder(Local<FunctionTemplate> function) {
475 return function->PrototypeTemplate();
521 virtual Local<ObjectTemplate> GetHolder(Local<FunctionTemplate> function) {
545 context.Check("function x() { }; x",
632 context.Check("function x() { return 7 }; x()",
648 context.Check("function x() { return 7 }; x",
697 "'use strict'; function x() { return 1 }; x()", "x()",
712 context.Check("function d0() { return x0 }", // dynamic lookup
718 "function f0() { let y = 10; return x0 + y }"
719 "function g0() { let y = 10; return eval('x0 + y') }"
720 "function h0() { let y = 10; return (1,eval)('x0') + y }"
726 "function f1() { let y = 10; return x1 + y }"
727 "function g1() { let y = 10; return eval('x1 + y') }"
728 "function h1() { let y = 10; return (1,eval)('x1') + y }"
729 "function i1() { "
732 "function j1() { let y = 10; return eval('x2 + y') }"
733 "function k1() { let y = 10; return (1,eval)('x2') + y }"
734 "function cl() { "
737 " f: function(){ return x1 + y },"
738 " g: function(){ return eval('x1 + y') },"
739 " h: function(){ return (1,eval)('x1') + y },"
740 " i: function(){"
743 " j: function(){ return eval('x2 + y') },"
744 " k: function(){ return (1,eval)('x2') + y },"
759 "function f2() { let y = 20; return x2 + y }"
760 "function g2() { let y = 20; return eval('x2 + y') }"
761 "function h2() { let y = 20; return (1,eval)('x2') + y }"
762 "function i2() { let y = 20; return x1 + y }"
763 "function j2() { let y = 20; return eval('x1 + y') }"
764 "function k2() { let y = 20; return (1,eval)('x1') + y }"
803 const char* script1 = "(function(){ return y1 })()";
804 const char* script2 = "(function(){ return y2 })()";
838 "function i1() { "
881 "function x() { return 1 }; x()",
888 "function x() { return 2 }; x()",
925 "function f(o) { with(o) { return x; } }"
926 "function g(o) { with(o) { x = 15; } }"
927 "function h(o) { with(o) { return typeof x; } }",
966 "function f() { return z; };"
975 "function f() { konst = 10; return konst; };"
1002 "function f(o) { return x; }"
1003 "function g(v) { x = v; }"
1004 "function h(o) { return typeof x; }",
1032 "function f() { return x; }"
1033 "function g() { return x; }"
1056 "function f() { return x; }"
1088 "function f(v) { x = v; }"
1089 "function g(v) { x = v; }"
1125 "function f(v) { x = v; }"
1163 context.Check("function f() { x = 27; }", EXPECT_RESULT,
1201 context.Check("function f() { x = 1; }", EXPECT_RESULT,
1210 context.Check("function f() { x = 1; }", EXPECT_RESULT,
1222 context.Check("function f() { x = 1; }", EXPECT_RESULT,
1242 context.Check("function f() { return x; }", EXPECT_RESULT,
1251 context.Check("function f() { return x; }", EXPECT_RESULT,
1263 context.Check("function f() { return x; }", EXPECT_RESULT,