Skip to content

Commit

Permalink
ShadowRealm: exportName is no longer be coerced to a string
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas authored and rwaldron committed May 5, 2022
1 parent b409843 commit d6b5b13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*---
esid: sec-shadowrealm.prototype.importvalue
description: >
ShadowRealm.prototype.importValue coerces exportName to string.
ShadowRealm.prototype.importValue throws if exportName is not a string.
features: [ShadowRealm]
---*/

Expand All @@ -23,8 +23,8 @@ const exportName = {
}
};

assert.throws(Test262Error, () => {
assert.throws(TypeError, () => {
r.importValue('', exportName);
});

assert.sameValue(count, 1);
assert.sameValue(count, 0);

0 comments on commit d6b5b13

Please sign in to comment.