mirror of https://github.com/tc39/test262.git
fix: ensure check for ShadowRealm at start of test
This commit is contained in:
parent
49819bc0bc
commit
e4adfd8979
|
@ -7,6 +7,12 @@ description: >
|
|||
features: [ShadowRealm]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
typeof ShadowRealm.prototype.evaluate,
|
||||
'function',
|
||||
'This test must fail if ShadowRealm.prototype.evaluate is not a function'
|
||||
);
|
||||
|
||||
globalThis.myValue = 'a';
|
||||
const realm1 = new ShadowRealm();
|
||||
|
||||
|
|
|
@ -6,6 +6,11 @@ description: >
|
|||
ShadowRealm can wrap a function to multiple nested realms.
|
||||
features: [ShadowRealm]
|
||||
---*/
|
||||
assert.sameValue(
|
||||
typeof ShadowRealm.prototype.evaluate,
|
||||
'function',
|
||||
'This test must fail if ShadowRealm.prototype.evaluate is not a function'
|
||||
);
|
||||
|
||||
globalThis.count = 0;
|
||||
const realm1 = new ShadowRealm();
|
||||
|
|
Loading…
Reference in New Issue