Skip to content

Commit

Permalink
Fix value to bigint conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Mar 17, 2023
1 parent 50a343a commit 58f8934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boa_engine/src/builtins/bigint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down

0 comments on commit 58f8934

Please sign in to comment.