Boa: Implement `BigInt` static methods

Created on 24 May 2020  路  5Comments  路  Source: boa-dev/boa

ECMASCript feature

Implement BigInt static methods:

  • [x] [BigInt.asIntN()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN)
  • [x] [BigInt.asUintN()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUntN)

More information:

enhancement good first issue builtins

Most helpful comment

I can take this. Seems doable :D

All 5 comments

I can take this. Seems doable :D

I can take this. Seems doable :D

Sure! Tell us if you need any help! :)

Quick status update:

After I was struggling a bit, I made some progress. The official ECMA conformance test suite is a great help (https://github.com/tc39/test262/tree/master/test/built-ins/BigInt/asIntN). It seems like the functions return the correct values for valid inputs now.

The error handling is not done yet and the code has to be cleaned up some more. I'll continue working on it.

450 should make it easier for error handling

This sounds great, especially "Merged Ast BigInt to Builtin BigInt.". The three different BigInt types were really confusing me.

Merging this will be difficult, though 馃槄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elasmojs picture elasmojs  路  4Comments

croraf picture croraf  路  4Comments

jasonwilliams picture jasonwilliams  路  4Comments

Razican picture Razican  路  4Comments

hello2dj picture hello2dj  路  5Comments