summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/setPrototypeOf/bigint.js
blob: 36477cd529f5557a0c883f6f8887e6beea6b8fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);