mirror of
https://github.com/tc39/test262.git
synced 2025-10-18 14:23:54 +02:00
23 lines
747 B
JavaScript
23 lines
747 B
JavaScript
// Copyright (C) 2017 Igalia, S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-bigint-parseint-string-radix
|
|
description: BigInt.parseInt is not a constructor
|
|
info: >
|
|
BigInt.parseInt ( string , radix )
|
|
|
|
The parseInt function produces a BigInt value dictated by
|
|
interpretation of the contents of the string argument according to
|
|
the specified radix.
|
|
|
|
9.3 Built-in Function Objects
|
|
|
|
Built-in function objects that are not identified as constructors do
|
|
not implement the [[Construct]] internal method unless otherwise
|
|
specified in the description of a particular function.
|
|
features: [BigInt, arrow-function]
|
|
---*/
|
|
|
|
assert.throws(TypeError, () => new BigInt.parseInt());
|