From d61a0b4e013fb645ca6b85d1d3928602e4f33d81 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 4 Oct 2015 15:45:30 -0400 Subject: [PATCH] remove overzealous duplicate error --- src/ast/Scope.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ast/Scope.js b/src/ast/Scope.js index 4bd4576..64c90be 100644 --- a/src/ast/Scope.js +++ b/src/ast/Scope.js @@ -86,7 +86,6 @@ export default class Scope { this.parent.addDeclaration( node, isBlockDeclaration, isVar ); } else { extractNames( node.id ).forEach( name => { - if ( this.declarations[ name ] ) throw new Error( `Duplicate declaration (${name})` ); this.declarations[ name ] = new Declaration( name ); }); }