Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 012744992fe783fa072249be7f7454de7699e7ca..4b079b990363fdf63eaccf755c45abf7fae33b5c 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -317,7 +317,8 @@ bool ScopeInfo::LocalIsSynthetic(int var) { |
// with user declarations, the current temporaries like .generator_object and |
// .result start with a dot, so we can use that as a flag. It's a hack! |
Handle<String> name(LocalName(var)); |
- return name->length() > 0 && name->Get(0) == '.'; |
+ return (name->length() > 0 && name->Get(0) == '.') || |
+ name->Equals(*GetIsolate()->factory()->this_string()); |
} |