From bb98bd3567aac12234b4fdd5e9768231c758c18b Mon Sep 17 00:00:00 2001 From: lupd <93457935+lupd@users.noreply.github.com> Date: Tue, 5 Apr 2022 12:32:52 +0000 Subject: [PATCH] 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. --- boa_engine/src/builtins/bigint/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa_engine/src/builtins/bigint/mod.rs b/boa_engine/src/builtins/bigint/mod.rs index b5bd14a4e5..7258d56d1f 100644 --- a/boa_engine/src/builtins/bigint/mod.rs +++ b/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,