@babel/plugin-transform-destructuring
Advanced tools
Comparing version 7.19.4 to 7.20.0
@@ -89,3 +89,3 @@ 'use strict'; | ||
if (this.kind === "const" && init === null) { | ||
if ((this.kind === "const" || this.kind === "using") && init === null) { | ||
nodeInit = this.scope.buildUndefinedNode(); | ||
@@ -148,3 +148,3 @@ } else { | ||
if (this.kind === "const" || this.kind === "let") { | ||
if (this.kind === "const" || this.kind === "let" || this.kind === "using") { | ||
patternId = this.scope.generateUidIdentifier(tempId.name); | ||
@@ -151,0 +151,0 @@ node = this.buildVariableDeclaration(patternId, tempConditional); |
{ | ||
"name": "@babel/plugin-transform-destructuring", | ||
"version": "7.19.4", | ||
"version": "7.20.0", | ||
"description": "Compile ES2015 destructuring to ES5", | ||
@@ -26,5 +26,5 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.19.3", | ||
"@babel/core": "^7.19.6", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/traverse": "^7.19.4" | ||
"@babel/traverse": "^7.20.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
79729