blob: 84e200f7118bc49225c656b1d7dd1504a40fc68b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// |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.difference
description: Tests that Set.prototype.difference meets the requirements for built-in objects
features: [set-methods]
---*/
assert.sameValue(
Object.isExtensible(Set.prototype.difference),
true,
"Built-in objects must be extensible."
);
assert.sameValue(
Object.prototype.toString.call(Set.prototype.difference),
"[object Function]",
"Object.prototype.toString"
);
assert.sameValue(
Object.getPrototypeOf(Set.prototype.difference),
Function.prototype,
"prototype"
);
reportCompare(0, 0);
|