@putout/babel 4.5.3 → 4.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/index.js +2 -2
- package/package.json +1 -1
package/bundle/index.js
CHANGED
|
@@ -44017,7 +44017,7 @@ var _Scope = class _Scope {
|
|
|
44017
44017
|
}
|
|
44018
44018
|
}
|
|
44019
44019
|
|
|
44020
|
-
checkBlockScopedCollisions(local, kind, name
|
|
44020
|
+
checkBlockScopedCollisions(local, kind, name) {
|
|
44021
44021
|
if (kind === 'param')
|
|
44022
44022
|
return;
|
|
44023
44023
|
|
|
@@ -44031,7 +44031,7 @@ var _Scope = class _Scope {
|
|
|
44031
44031
|
|| local.kind === 'param' && kind === 'const';
|
|
44032
44032
|
|
|
44033
44033
|
if (duplicate) {
|
|
44034
|
-
throw
|
|
44034
|
+
throw Error(`Duplicate declaration '${name}'`, TypeError);
|
|
44035
44035
|
}
|
|
44036
44036
|
}
|
|
44037
44037
|
|