Home | History | Annotate | Download | only in cctest

Lines Matching refs:env1

2878   LocalContext env1;
2880 env1->Global();
2908 LocalContext env1;
4125 LocalContext env1;
4132 env1->SetSecurityToken(foo);
4134 // Create a function in env1.
4136 Local<Value> spy = env1->Global()->Get(v8_str("spy"));
4141 Local<Value> spy2 = env1->Global()->Get(v8_str("spy2"));
4238 LocalContext env1;
4245 env1->SetSecurityToken(foo);
4248 env1->Global()->Set(v8_str("prop"), v8_num(3));
4249 env2->Global()->Set(v8_str("env1"), env1->Global());
4251 // Change env2 to a different domain and delete env1.prop.
4256 Script::Compile(v8_str("delete env1.prop"))->Run();
4260 // Check that env1.prop still exists.
4261 Local<Value> v = env1->Global()->Get(v8_str("prop"));
4271 LocalContext env1;
4278 env1->SetSecurityToken(foo);
4281 env1->Global()->Set(v8_str("prop"), v8_num(3));
4282 env2->Global()->Set(v8_str("env1"), env1->Global());
4284 // env1.prop is enumerable in env2.
4285 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')");
4306 LocalContext env1;
4313 env1->SetSecurityToken(foo);
4316 env1->Global()->Set(v8_str("prop"), v8_num(3));
4317 env2->Global()->Set(v8_str("env1"), env1->Global());
4319 // Change env2 to a different domain and set env1's global object
4321 // in for-in. It shouldn't enumerate properties on env1's global
4327 CompileRun("(function(){var obj = {'__proto__':env1};"
4339 LocalContext env1;
4342 Local<v8::Object> global1 = env1->Global();
4347 env1->SetSecurityToken(foo);
4353 // Create a function in env2 and add a reference to it in env1.
4358 env1->Global()->Set(v8_str("getProp"),
4380 // Call getProp in env1, and it should return the value 1
4390 // Check that env3 is not accessible from env1
4403 LocalContext env1;
4410 // Set same security token for env1 and env2.
4411 env1->SetSecurityToken(foo);
4420 // Create a reference to env2 global from env1 global.
4421 env1->Global()->Set(v8_str("other"), env2->Global());
4423 // Check that we have access to other.p in env2 from env1.
4442 // Start by using the same security token for env3 as for env1 and env2.
4456 // Change security token for env3 to something different from env1 and env2.
4459 // Check that we do not have access to other.p in env1. |other| is now
4469 // Check that we have access to other.p again in env1. |other| is now
4470 // the global object for env2 which has the same security token as env1.