Browse Source

Indicate bigint has constructor (#2008)

This Pull Request changes BigInt so that isConstructor returns true.

It changes a single boolean value for BigInt's ConstructorBuilder.
pull/2011/head
lupd 3 years ago
parent
commit
bb98bd3567
  1. 2
      boa_engine/src/builtins/bigint/mod.rs

2
boa_engine/src/builtins/bigint/mod.rs

@ -51,7 +51,7 @@ impl BuiltIn for BigInt {
.static_method(Self::as_int_n, "asIntN", 2)
.static_method(Self::as_uint_n, "asUintN", 2)
.callable(true)
.constructor(false)
.constructor(true)
.property(
to_string_tag,
Self::NAME,

Loading…
Cancel
Save