Skip to content

Commit

Permalink
Indicate bigint has constructor (#2008)
Browse files Browse the repository at this point in the history
This Pull Request changes BigInt so that isConstructor returns true.

It changes a single boolean value for BigInt's ConstructorBuilder.
  • Loading branch information
lupd committed Apr 5, 2022
1 parent ffc7a3e commit bb98bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa_engine/src/builtins/bigint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bb98bd3

Please sign in to comment.