From da4fb22e7a368ecc460ac2a875ff38fa3132e422 Mon Sep 17 00:00:00 2001 From: zackschuster Date: Sun, 23 Oct 2016 23:14:14 -0700 Subject: [PATCH] destructure options in Scope constructor i couldn't think of a reason you'd opt out of destructuring here; apologies if i'm mistaken somehow --- src/ast/scopes/Scope.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ast/scopes/Scope.js b/src/ast/scopes/Scope.js index 7bb1671..2c250a8 100644 --- a/src/ast/scopes/Scope.js +++ b/src/ast/scopes/Scope.js @@ -27,9 +27,7 @@ class Parameter { } export default class Scope { - constructor ( options ) { - options = options || {}; - + constructor ( options = {} ) { this.parent = options.parent; this.isBlockScope = !!options.isBlockScope; this.isLexicalBoundary = !!options.isLexicalBoundary;