Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1698)

Unified Diff: src/scopes.cc

Issue 42009: Fix issue 267: Functions now called with global object as receiver. (Closed)
Patch Set: Now with regression test Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 0a381df5d5663633ebfb60e74add8ae14ae7acad..e959f02523c133b260e28bf0f9581cabecbda848 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -822,7 +822,8 @@ void Scope::AllocateParameterLocals() {
var->rewrite_ =
new Property(arguments_shadow_,
new Literal(Handle<Object>(Smi::FromInt(i))),
- RelocInfo::kNoPosition);
+ RelocInfo::kNoPosition,
+ Property::SYNTHETIC);
arguments_shadow->var_uses()->RecordUses(var->var_uses());
}
}

Powered by Google App Engine
This is Rietveld 408576698