Skip to content
Snippets Groups Projects
Unverified Commit 119c8ead authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1517 from cxielarko/valueof-realm

cross-realm test for BigInt.prototype.valueOf
parents 1155332c 5be8900d
No related branches found
No related tags found
No related merge requests found
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-bigint.prototype.valueof
description: valueOf called with a BigInt object from another realm
features: [BigInt, cross-realm]
---*/
var other = $262.createRealm().global;
var wrapped = other.Object(other.BigInt(0));
assert.sameValue(BigInt.prototype.valueOf.call(wrapped), 0n,
"cross-realm valueOf");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment