test262/test/built-ins/BigInt/parseInt/not-constructor.js
Robin Templeton 72fb638ca7 BigInt.parseInt tests (#1208)
* BigInt.parseInt tests

* update for PR#1208

* fix copyright notices
2017-10-17 12:40:22 -04:00

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());