Home | History | Annotate | Download | only in cctest

Lines Matching defs:env1

6241   LocalContext env1;
6243 env1->Global();
6271 LocalContext env1;
8310 LocalContext env1;
8311 v8::HandleScope handle_scope(env1->GetIsolate());
8312 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8318 env1->SetSecurityToken(foo);
8320 // Create a function in env1.
8322 Local<Value> spy = env1->Global()->Get(v8_str("spy"));
8327 Local<Value> spy2 = env1->Global()->Get(v8_str("spy2"));
8420 LocalContext env1;
8421 v8::HandleScope handle_scope(env1->GetIsolate());
8422 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8428 env1->SetSecurityToken(foo);
8431 env1->Global()->Set(v8_str("prop"), v8_num(3));
8432 env2->Global()->Set(v8_str("env1"), env1->Global());
8434 // Change env2 to a different domain and delete env1.prop.
8439 Script::Compile(v8_str("delete env1.prop"))->Run();
8443 // Check that env1.prop still exists.
8444 Local<Value> v = env1->Global()->Get(v8_str("prop"));
8451 LocalContext env1;
8452 v8::HandleScope handle_scope(env1->GetIsolate());
8453 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8459 env1->SetSecurityToken(foo);
8462 env1->Global()->Set(v8_str("prop"), v8_num(3));
8463 env2->Global()->Set(v8_str("env1"), env1->Global());
8465 // env1.prop is enumerable in env2.
8466 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')");
8484 LocalContext env1;
8485 v8::HandleScope handle_scope(env1->GetIsolate());
8486 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8492 env1->SetSecurityToken(foo);
8495 env1->Global()->Set(v8_str("prop"), v8_num(3));
8496 env2->Global()->Set(v8_str("env1"), env1->Global());
8498 // Change env2 to a different domain and set env1's global object
8500 // in for-in. It shouldn't enumerate properties on env1's global
8506 CompileRun("(function(){var obj = {'__proto__':env1};"
8516 LocalContext env1;
8517 v8::HandleScope handle_scope(env1->GetIsolate());
8518 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8520 Local<v8::Object> global1 = env1->Global();
8525 env1->SetSecurityToken(foo);
8531 // Create a function in env2 and add a reference to it in env1.
8536 env1->Global()->Set(v8_str("getProp"),
8543 v8::Handle<Context> env3 = Context::New(env1->GetIsolate(),
8558 // Call getProp in env1, and it should return the value 1
8568 // Check that env3 is not accessible from env1
8577 LocalContext env1;
8578 v8::HandleScope scope(env1->GetIsolate());
8581 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8585 // Set same security token for env1 and env2.
8586 env1->SetSecurityToken(foo);
8595 // Create a reference to env2 global from env1 global.
8596 env1->Global()->Set(v8_str("other"), env2->Global());
8598 // Check that we have access to other.p in env2 from env1.
8613 v8::Handle<Context> env3 = Context::New(env1->GetIsolate(),
8619 // Start by using the same security token for env3 as for env1 and env2.
8633 // Change security token for env3 to something different from env1 and env2.
8636 // Check that we do not have access to other.p in env1. |other| is now
8645 LocalContext env1;
8646 v8::HandleScope scope(env1->GetIsolate());
8649 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8653 // Set same security token for env1 and env2.
8654 env1->SetSecurityToken(foo);
8664 env1->Global()->Set(v8_str("get_x"), CompileRun("get_x"));
8665 env1->Global()->Set(v8_str("get_x_w"), CompileRun("get_x_w"));
8679 env2 = Context::New(env1->GetIsolate(),