Implement BigInt asIntN and asUintN methods (#5165)
The following methods were implemented: - BigInt.asIntN - BigInt.asUintN Custom dispatcher also added to builtin_bigint. The implementation is based on PR #4736, only applied the requested changes. Co-authored-by: Daniel Batiz batizjob@gmail.com JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
This commit is contained in:
@@ -144,6 +144,8 @@ LIT_MAGIC_STRING_THROW = "throw"
|
||||
LIT_MAGIC_STRING_TRUNC = "trunc"
|
||||
LIT_MAGIC_STRING_VALUE = "value"
|
||||
LIT_MAGIC_STRING_SOURCE_NAME_EVAL = "<eval>"
|
||||
LIT_MAGIC_STRING_AS_INT_N = "asIntN"
|
||||
LIT_MAGIC_STRING_AS_U_INT_N = "asUintN"
|
||||
LIT_MAGIC_STRING_BIGINT_UL = "BigInt"
|
||||
LIT_MAGIC_STRING_ERRORS_UL = "errors"
|
||||
LIT_MAGIC_STRING_HAS_OWN_UL = "hasOwn"
|
||||
|
||||
Reference in New Issue
Block a user