blob: 7b3234c5a99a60e8471abf40c12da39e103047f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// |reftest| skip -- set-methods is not supported
// Copyright (C) 2023 Anthony Frehner and Kevin Gibbons. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-set.prototype.symmetricdifference
description: Set.prototype.symmetricDifference does not implement [[Construct]], is not new-able
includes: [isConstructor.js]
features: [Reflect.construct, set-methods]
---*/
assert.sameValue(
isConstructor(Set.prototype.symmetricDifference),
false,
"isConstructor(Set.prototype.symmetricDifference) must return false"
);
assert.throws(
TypeError,
() => {
new Set.prototype.symmetricDifference();
});
reportCompare(0, 0);
|