Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Set / prototype / symmetricDifference / not-a-constructor.js
blob7b3234c5a99a60e8471abf40c12da39e103047f8
1 // |reftest| skip -- set-methods is not supported
2 // Copyright (C) 2023 Anthony Frehner and Kevin Gibbons. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-set.prototype.symmetricdifference
6 description: Set.prototype.symmetricDifference does not implement [[Construct]], is not new-able
7 includes: [isConstructor.js]
8 features: [Reflect.construct, set-methods]
9 ---*/
11 assert.sameValue(
12   isConstructor(Set.prototype.symmetricDifference),
13   false,
14   "isConstructor(Set.prototype.symmetricDifference) must return false"
17 assert.throws(
18   TypeError,
19   () => {
20     new Set.prototype.symmetricDifference();
21   });
23 reportCompare(0, 0);