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

Unified Diff: src/accessors.cc

Issue 10911063: Fix some corner cases in skipping native methods using caller. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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-145201.js » ('j') | test/mjsunit/regress/regress-145201.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/accessors.cc
===================================================================
--- src/accessors.cc (revision 12398)
+++ src/accessors.cc (working copy)
@@ -755,6 +755,9 @@
caller = potential_caller;
potential_caller = it.next();
}
+ if (!caller->shared()->native()) {
+ caller = potential_caller;
+ }
// If caller is bound, return null. This is compatible with JSC, and
// allows us to make bound functions use the strict function map
// and its associated throwing caller and arguments.
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-145201.js » ('j') | test/mjsunit/regress/regress-145201.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698