Home | History | Annotate | Download | only in cctest

Lines Matching refs:obj2

1276   env->Global()->Set(v8_str("obj2"),
1278 CHECK_EQ(17.2, v8_compile("obj2.flabby()")->Run()->NumberValue());
1279 CHECK(v8_compile("'flabby' in obj2")->Run()->BooleanValue());
1280 CHECK_EQ(15.2, v8_compile("obj2.knurd")->Run()->NumberValue());
1281 CHECK(v8_compile("'knurd' in obj2")->Run()->BooleanValue());
1282 CHECK_EQ(10.1, v8_compile("obj2.v2")->Run()->NumberValue());
1286 CHECK(v8_compile("obj2.v1")->Run()->IsUndefined());
3534 CompileRun("var obj2 = {};");
3537 CHECK(CompileRun("obj2.x")->IsUndefined());
3543 CHECK(CompileRun("obj2.x")->IsUndefined());
3545 CHECK(GetGlobalProperty(&context, "obj2")->
3549 ExpectString("obj2.x", "x");
3552 ExpectTrue("Object.getOwnPropertyDescriptor(obj2, 'x').configurable");
3558 ExpectString("obj2.x", "x");
3560 CompileRun("Object.defineProperty(obj2, 'x',"
3564 ExpectString("obj2.x", "y");
3567 ExpectTrue("Object.getOwnPropertyDescriptor(obj2, 'x').configurable");
3571 CHECK(GetGlobalProperty(&context, "obj2")->
3575 ExpectString("obj2.x", "x");
3578 ExpectTrue("Object.getOwnPropertyDescriptor(obj2, 'x').configurable");
3583 CompileRun("Object.defineProperty(obj2, 'x',"
3587 ExpectTrue("!Object.getOwnPropertyDescriptor(obj2, 'x').configurable");
3590 ExpectString("obj2.x", "z");
3594 CHECK(!GetGlobalProperty(&context, "obj2")->
3598 ExpectString("obj2.x", "z");
3608 CompileRun("var obj2 = {};");
3614 CHECK(GetGlobalProperty(&context, "obj2")->SetAccessor(
3620 ExpectString("obj2.x", "x");
3623 ExpectTrue("!Object.getOwnPropertyDescriptor(obj2, 'x').configurable");
3627 CHECK(!GetGlobalProperty(&context, "obj2")->
3640 CompileRun("Object.defineProperty(obj2, 'x',"
3664 CompileRun("var obj2 = {};");
3670 CHECK(GetGlobalProperty(&context, "obj2")->SetAccessor(
3676 ExpectString("obj2[239]", "239");
3678 ExpectString("obj2['239']", "239");
6072 v8::Handle<v8::Object> obj2 = templ2->GetFunction()->NewInstance();
6077 CHECK_EQ(2, type_switch->match(obj2));
6080 CHECK_EQ(2, type_switch->match(obj2));
8026 context->Global()->Set(v8_str("obj2"), instance);
8031 value = CompileRun("new obj2(28)");
8386 context->Global()->Set(v8_str("obj2"), instance);
8392 value = CompileRun("obj2(28)");
8396 CHECK_EQ("TypeError: Property 'obj2' of object #<Object> is not a function",
8401 value = CompileRun("obj2(28)");
13374 v8::Handle<v8::Object> obj2 = v8::Object::New();
13375 obj2->Set(v8_str("ee_test_field"), v8::Int32::New(256));
13376 obj2->Set(v8_str(""), v8::Int32::New(1503));
13378 obj2->SetIndexedPropertiesToExternalArrayData(array_data,
13381 context->Global()->Set(v8_str("ext_array"), obj2);
13388 v8::Handle<v8::Object> obj2 = v8::Object::New();
13389 obj2->Set(v8_str("ee_test_field_2"), v8::Int32::New(256));
13391 obj2->SetIndexedPropertiesToExternalArrayData(array_data,
13394 obj2->Set(v8_str(""), v8::Int32::New(1503));
13395 context->Global()->Set(v8_str("ext_array"), obj2);
13402 v8::Handle<v8::Object> obj2 = v8::Object::New();
13403 obj2->Set(v8_str("ee_test_field_2"), v8::Int32::New(256));
13406 obj2->SetIndexedPropertiesToExternalArrayData(array_data,
13409 context->Global()->Set(v8_str("ext_array"), obj2);
13416 v8::Handle<v8::Object> obj2 = v8::Object::New();
13418 obj2->Set(v8_str("ee_test_field3"), v8::Int32::New(256));
13421 context->Global()->Set(v8_str("ext_array"), obj2);
13447 v8::Handle<v8::Object> obj2 = v8::Object::New();
13448 obj2->Set(v8_str("ee_test_field4"), v8::Int32::New(256));
13449 context->Global()->Set(v8_str("ext_array"), obj2);