summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/Set/non-iterable-error.js
blob: e2702abb4990d8835e794edd005487f739e5911c (plain)
1
2
3
4
5
6
7
// Self-hosted JS code shouldn't be used for error message.

try {
  new Set(...[1]);
} catch (e) {
  assertEq(e.message, "1 is not iterable");
}