summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js')
-rw-r--r--js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js b/js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js
new file mode 100644
index 0000000000..36477cd529
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js
@@ -0,0 +1,18 @@
+// Copyright (C) 2017 Robin Templeton. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+description: RequireObjectCoercible for BigInt values
+esid: pending
+features: [BigInt]
+---*/
+
+try {
+ let {} = 0n;
+} catch (e) {
+ throw new Test262Error('Expected RequireObjectCoercible to succeed for BigInt values');
+}
+
+assert.sameValue(Object.setPrototypeOf(0n, null), 0n);
+
+reportCompare(0, 0);