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

Unified Diff: src/v8natives.js

Issue 7044054: Fix Array.prototype.{reduce,reduceRight} to pass undefined as receiver (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 years, 6 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 | « src/preparser.cc ('k') | test/mjsunit/regress/regress-1436.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index a5627c8cf35fd93a93eb549a3fe7ad4cad10aeef..3cb9dfd63e756f2e080596a586dbff80ccf673e3 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -592,10 +592,10 @@ function GetProperty(obj, p) {
// ES5 section 8.12.6
function HasProperty(obj, p) {
if (%IsJSProxy(obj)) {
- var handler = %GetHandler(obj)
- var has = handler.has
- if (IS_UNDEFINED(has)) has = DerivedHasTrap
- return ToBoolean(has.call(handler, obj, p))
+ var handler = %GetHandler(obj);
+ var has = handler.has;
+ if (IS_UNDEFINED(has)) has = DerivedHasTrap;
+ return ToBoolean(has.call(handler, obj, p));
}
var desc = GetProperty(obj, p);
return IS_UNDEFINED(desc) ? false : true;
« no previous file with comments | « src/preparser.cc ('k') | test/mjsunit/regress/regress-1436.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698