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);
}
// 4. Otherwise, return ? ToBigInt(value).
Ok(value.to_bigint(context)?.into())
// 4. Otherwise, return ? ToBigInt(prim).
Ok(prim.to_bigint(context)?.into())
}
}

Loading…
Cancel
Save