mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
Remove unnecessary eval to access realm globals
This commit is contained in:
parent
3f6708fa04
commit
619afdeab7
@ -10,7 +10,7 @@ features: [cross-realm, class]
|
||||
|
||||
const realm = $262.createRealm();
|
||||
const C = realm.global.eval('(class {})');
|
||||
const TE = realm.global.eval('TypeError');
|
||||
const TE = realm.global.TypeError;
|
||||
|
||||
assert.throws(TE, function() {
|
||||
C();
|
||||
|
@ -32,7 +32,7 @@ assert.sameValue(
|
||||
);
|
||||
|
||||
var other = $262.createRealm().global;
|
||||
var OtherShadowRealm = other.eval('ShadowRealm');
|
||||
var OtherShadowRealm = other.ShadowRealm;
|
||||
|
||||
var realm = Reflect.construct(OtherShadowRealm, []);
|
||||
var fn = r.evaluate('() => {}');
|
||||
|
Loading…
x
Reference in New Issue
Block a user