Lines Matching defs:env1
4324 LocalContext env1;
4326 env1->Global();
4354 LocalContext env1;
6294 LocalContext env1;
6301 env1->SetSecurityToken(foo);
6303 // Create a function in env1.
6305 Local<Value> spy = env1->Global()->Get(v8_str("spy"));
6310 Local<Value> spy2 = env1->Global()->Get(v8_str("spy2"));
6407 LocalContext env1;
6414 env1->SetSecurityToken(foo);
6417 env1->Global()->Set(v8_str("prop"), v8_num(3));
6418 env2->Global()->Set(v8_str("env1"), env1->Global());
6420 // Change env2 to a different domain and delete env1.prop.
6425 Script::Compile(v8_str("delete env1.prop"))->Run();
6429 // Check that env1.prop still exists.
6430 Local<Value> v = env1->Global()->Get(v8_str("prop"));
6440 LocalContext env1;
6447 env1->SetSecurityToken(foo);
6450 env1->Global()->Set(v8_str("prop"), v8_num(3));
6451 env2->Global()->Set(v8_str("env1"), env1->Global());
6453 // env1.prop is enumerable in env2.
6454 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')");
6475 LocalContext env1;
6482 env1->SetSecurityToken(foo);
6485 env1->Global()->Set(v8_str("prop"), v8_num(3));
6486 env2->Global()->Set(v8_str("env1"), env1->Global());
6488 // Change env2 to a different domain and set env1's global object
6490 // in for-in. It shouldn't enumerate properties on env1's global
6496 CompileRun("(function(){var obj = {'__proto__':env1};"
6508 LocalContext env1;
6511 Local<v8::Object> global1 = env1->Global();
6516 env1->SetSecurityToken(foo);
6522 // Create a function in env2 and add a reference to it in env1.
6527 env1->Global()->Set(v8_str("getProp"),
6549 // Call getProp in env1, and it should return the value 1
6559 // Check that env3 is not accessible from env1
6572 LocalContext env1;
6579 // Set same security token for env1 and env2.
6580 env1->SetSecurityToken(foo);
6589 // Create a reference to env2 global from env1 global.
6590 env1->Global()->Set(v8_str("other"), env2->Global());
6592 // Check that we have access to other.p in env2 from env1.
6611 // Start by using the same security token for env3 as for env1 and env2.
6625 // Change security token for env3 to something different from env1 and env2.
6628 // Check that we do not have access to other.p in env1. |other| is now
6638 // Check that we have access to other.p again in env1. |other| is now
6639 // the global object for env2 which has the same security token as env1.