Browse Source

Fix value to bigint conversion (#2688)

This PR should fix the remaining tests in the builtin `BigInt` test suite
pull/2689/head
Haled Odat 2 years ago
parent
commit
b2b079b475
  1. 4
      boa_engine/src/builtins/bigint/mod.rs

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

@ -98,8 +98,8 @@ impl BuiltInConstructor for BigInt {
return Self::number_to_bigint(number); return Self::number_to_bigint(number);
} }
// 4. Otherwise, return ? ToBigInt(value). // 4. Otherwise, return ? ToBigInt(prim).
Ok(value.to_bigint(context)?.into()) Ok(prim.to_bigint(context)?.into())
} }
} }

Loading…
Cancel
Save