Lines Matching refs:Realm
28 var realms = [Realm.current(), Realm.create()];
29 globals = [Realm.global(0), Realm.global(1)];
30 Realm.shared = {}
33 Realm.shared[name] = value;
35 Realm.eval(realms[i], name + " = Realm.shared['" + name + "'];");
44 Realm.shared.results = [];
47 Realm.eval(realms[i]," \
57 assertSame(globals[0], Realm.shared.results[0]);
58 assertSame(undefined, Realm.shared.results[1]);
59 assertSame(globals[i], Realm.shared.results[2]);
60 assertSame(globals[i], Realm.shared.results[3]);
66 assertSame(globals[0], Realm.eval(realms[i],'return_this.apply()')) ;
67 assertSame(undefined, Realm.eval(realms[i],'return_this_strict.apply()'));
68 assertSame(globals[0], Realm.eval(realms[i],'return_this.apply(null)')) ;
69 assertSame(null, Realm.eval(realms[i],'return_this_strict.apply(null)'));
71 assertSame(globals[0], Realm.eval(realms[i],'return_this.call()')) ;
72 assertSame(undefined, Realm.eval(realms[i],'return_this_strict.call()'));
73 assertSame(globals[0], Realm.eval(realms[i],'return_this.call(null)')) ;
74 assertSame(null, Realm.eval(realms[i],'return_this_strict.call(null)'));
85 Realm.eval(realms[0], "var name = 'o'");
86 Realm.eval(realms[1], "var name = 'i'");
92 result = Realm.eval(realms[i], " \