File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1417,7 +1417,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
1417
1417
1418
1418
multi method as_js (QAST ::IVal $ node , : $ want ) {
1419
1419
if $ want == $ T_INT64 || $ want == $ T_UINT64 {
1420
- Chunk. new ($ want ,' ( ' ~ $ node . value ()~ ' n )' , : $ node );
1420
+ Chunk. new ($ want ,' nqp.BigInt(" ' ~ $ node . value ()~ ' " )' , : $ node );
1421
1421
} else {
1422
1422
# TODO think about 64bit values
1423
1423
Chunk. new ($ T_INT ,' (' ~ $ node . value ()~ ' )' , : $ node );
Original file line number Diff line number Diff line change @@ -836,6 +836,7 @@ exports.createSourceMap = core.createSourceMap;
836
836
exports . ZERO = JSBI . BigInt ( 0 ) ;
837
837
exports . asIntN = asIntN . asIntN ;
838
838
exports . asUintN = asIntN . asUintN ;
839
+ exports . BigInt = JSBI . BigInt ;
839
840
840
841
module . exports . freshGlobalContext = globalContext . freshGlobalContext ;
841
842
module . exports . setGlobalContext = globalContext . setGlobalContext ;
You can’t perform that action at this time.
0 commit comments