mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 07:25:15 +02:00
ShadowRealm: exportName is no longer be coerced to a string
This commit is contained in:
parent
b409843612
commit
d6b5b1358c
@ -3,7 +3,7 @@
|
|||||||
/*---
|
/*---
|
||||||
esid: sec-shadowrealm.prototype.importvalue
|
esid: sec-shadowrealm.prototype.importvalue
|
||||||
description: >
|
description: >
|
||||||
ShadowRealm.prototype.importValue coerces exportName to string.
|
ShadowRealm.prototype.importValue throws if exportName is not a string.
|
||||||
features: [ShadowRealm]
|
features: [ShadowRealm]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -23,8 +23,8 @@ const exportName = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
assert.throws(Test262Error, () => {
|
assert.throws(TypeError, () => {
|
||||||
r.importValue('', exportName);
|
r.importValue('', exportName);
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.sameValue(count, 1);
|
assert.sameValue(count, 0);
|
Loading…
x
Reference in New Issue
Block a user