babel-plugin-transform-bigint
Advanced tools
Comparing version 1.0.26 to 1.0.27
@@ -8,3 +8,3 @@ // to run this test file use `npx jest` in the parent folder or `npm run test` | ||
/* | ||
it('it works with AssignmentExpressions', function () { | ||
@@ -32,3 +32,2 @@ const example = ` | ||
}); | ||
*/ | ||
@@ -35,0 +34,0 @@ /* |
12
index.js
@@ -578,13 +578,2 @@ // see https://github.com/babel/babel/pull/6015 | ||
AssignmentExpression: function (path, state) { | ||
const JSBI = canBeBigInt(path); | ||
if (JSBI !== false) { | ||
const operator = path.node.operator; | ||
if (operator.endsWith('=')) { | ||
const functionName = getFunctionName(operator.slice(0, -'='.length)); | ||
if (functionName != null) { | ||
throw new RangeError('AssignmentExpressions are not supported because of the complexity: ' + path); | ||
} | ||
} | ||
} | ||
/* | ||
const isConstant = function (path) { | ||
@@ -653,3 +642,2 @@ if (types.isStringLiteral(path.node)) { | ||
} | ||
*/ | ||
}, | ||
@@ -656,0 +644,0 @@ Program: function (path) { |
{ | ||
"name": "babel-plugin-transform-bigint", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"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
54420
925