babel-plugin-transform-jsbi-to-bigint
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -61,3 +61,3 @@ "use strict"; | ||
var createBigIntConstructor = function createBigIntConstructor(path) { | ||
var reInteger = /^(?:0|[1-9][0-9]+)$/; | ||
var reInteger = /^(?:0|[1-9][0-9]*)$/; | ||
var arg = path.node.arguments[0]; | ||
@@ -64,0 +64,0 @@ |
{ | ||
"name": "babel-plugin-transform-jsbi-to-bigint", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Compile JSBI code to native BigInt code.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -13,3 +13,3 @@ # babel-plugin-transform-jsbi-to-bigint [![Build status](https://travis-ci.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint.svg?branch=master)](https://travis-ci.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint) | ||
const a = JSBI.BigInt(Number.MAX_SAFE_INTEGER); | ||
const b = JSBI.BigInt(12); | ||
const b = JSBI.BigInt('2'); | ||
@@ -45,3 +45,3 @@ JSBI.add(a, b); | ||
const a = BigInt(Number.MAX_SAFE_INTEGER); | ||
const b = 12n; | ||
const b = 2n; | ||
@@ -48,0 +48,0 @@ a + b; |