Browse Source

Merge pull request #1076 from zackschuster/patch-1

destructure options in Scope constructor
legacy-quote-reserved-properties
Oskar Segersvärd 8 years ago
committed by GitHub
parent
commit
3a89cf7d2a
  1. 4
      src/ast/scopes/Scope.js

4
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;

Loading…
Cancel
Save