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

Unified Diff: src/execution.cc

Issue 7886032: Fixed spurious character in test case, plus presubmit issues. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Jakob's comments. Created 9 years, 3 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
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-bind-receiver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index 7ad2dc0be8d5c62b153adf04fdf455a2091db890..de7632a7f426af73e19177af7fa080ab27ad6002 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -162,9 +162,9 @@ Handle<Object> Execution::Call(Handle<Object> callable,
!func->shared()->native() && !func->shared()->strict_mode()) {
if (receiver->IsUndefined() || receiver->IsNull()) {
Object* global = func->context()->global()->global_receiver();
- // For reasons that escape me, 'global' can be the JSBuiltinsObject
- // under some circumstances. In that case, don't rewrite.
- // FWIW, the same holds for GetIsolate()->global()->global_receiver().
+ // Under some circumstances, 'global' can be the JSBuiltinsObject
+ // In that case, don't rewrite.
+ // (FWIW, the same holds for GetIsolate()->global()->global_receiver().)
if (!global->IsJSBuiltinsObject()) receiver = Handle<Object>(global);
} else {
receiver = ToObject(receiver, pending_exception);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-bind-receiver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698