Browse Source

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
legacy-quote-reserved-properties
zackschuster 8 years ago
committed by GitHub
parent
commit
da4fb22e7a
  1. 4
      src/ast/scopes/Scope.js

4
src/ast/scopes/Scope.js

@ -27,9 +27,7 @@ class Parameter {
} }
export default class Scope { export default class Scope {
constructor ( options ) { constructor ( options = {} ) {
options = options || {};
this.parent = options.parent; this.parent = options.parent;
this.isBlockScope = !!options.isBlockScope; this.isBlockScope = !!options.isBlockScope;
this.isLexicalBoundary = !!options.isLexicalBoundary; this.isLexicalBoundary = !!options.isLexicalBoundary;

Loading…
Cancel
Save