ignore this expressions in Scope#generateTempBasedOnNode - fixes #1033

This commit is contained in:
Sebastian McKenzie 2015-03-17 02:20:54 +11:00
parent 4d965b0f46
commit 976e8c1cfd

View File

@ -199,6 +199,10 @@ export default class Scope {
*/
generateTempBasedOnNode(node: Object): ?Object {
if (t.isThisExpression(node)) {
return null;
}
if (t.isIdentifier(node) && this.hasBinding(node.name)) {
return null;
}