babel-plugin-transform-bigint
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -152,3 +152,3 @@ // to run this test file use `npx jest` in the parent folder or `npm run test` | ||
it('it does not mutable variables', function () { | ||
it('it does not replace expression for a mutable variable', function () { | ||
const example = ` | ||
@@ -165,3 +165,3 @@ function f() { | ||
it('it does not mutable variables2', function () { | ||
it('it does not replace expression for a mutable variable2', function () { | ||
const example = ` | ||
@@ -168,0 +168,0 @@ function f() { |
@@ -100,3 +100,6 @@ // see https://github.com/babel/babel/pull/6015 | ||
if (path.node.type === 'AssignmentExpression') { | ||
return canBeBigInt(path.get('right')); | ||
if (path.node.operator === '=') { | ||
return canBeBigInt(path.get('right')); | ||
} | ||
return and(canBeBigInt(path.get('left')), canBeBigInt(path.get('right'))); | ||
} | ||
@@ -103,0 +106,0 @@ if (path.node.type === 'Identifier') { |
{ | ||
"name": "babel-plugin-transform-bigint", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "A plugin for babel to transform `x * y` into something like `JSBI.multiply(x, y)` to support bigints.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37460
701