summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Set/prototype/difference/difference.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Set/prototype/difference/difference.js')
-rw-r--r--js/src/tests/test262/built-ins/Set/prototype/difference/difference.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Set/prototype/difference/difference.js b/js/src/tests/test262/built-ins/Set/prototype/difference/difference.js
new file mode 100644
index 0000000000..a68a3313b5
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Set/prototype/difference/difference.js
@@ -0,0 +1,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.difference
+description: Set.prototype.difference properties
+includes: [propertyHelper.js]
+features: [set-methods]
+---*/
+
+assert.sameValue(
+ typeof Set.prototype.difference,
+ "function",
+ "`typeof Set.prototype.difference` is `'function'`"
+);
+
+verifyProperty(Set.prototype, "difference", {
+ enumerable: false,
+ writable: true,
+ configurable: true,
+});
+
+reportCompare(0, 0);