blob: 62a37851c6eb59844eaaa4149d86f3f5212bad66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |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.issupersetof
description: Set.prototype.isSupersetOf compares Sets
features: [set-methods]
---*/
const s1 = new Set([1, 2]);
const s2 = new Set([2, 3]);
assert.sameValue(s1.isSupersetOf(s2), false);
const s3 = new Set([1]);
assert.sameValue(s1.isSupersetOf(s3), true);
reportCompare(0, 0);
|