Merge branch 'experimental' of github.com:babel/babel into experimental

# Conflicts:
#	src/babel/transformation/transformers/playground/object-getter-memoization.js
#	src/babel/traversal/path/index.js
#	src/babel/traversal/scope.js
This commit is contained in:
Sebastian McKenzie 2015-03-14 03:10:17 +11:00
commit d4d18f4230

View File

@ -71,6 +71,13 @@ export default class Scope {
*/ */
constructor(path: TraversalPath, parent?: Scope, file?: File) { constructor(path: TraversalPath, parent?: Scope, file?: File) {
var cached = path.getData("scope");
if (cached) {
return cached;
} else {
//path.setData("scope", this);
}
this.parent = parent; this.parent = parent;
this.file = parent ? parent.file : file; this.file = parent ? parent.file : file;