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

Unified Diff: src/js/v8natives.js

Issue 1480213004: [runtime] [proxy] Make Object.prototype.hasOwnProperty support proxies (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unused flag Created 5 years 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 | src/runtime/runtime-object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index 711a22fe64ca8e0a43aecf2fe8aaed46bc066d14..9a775883c423199d3e65dfa44b2257584aee196f 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -183,18 +183,10 @@ function ObjectValueOf() {
}
-// ECMA-262 - 15.2.4.5
+// ES6 7.3.11
function ObjectHasOwnProperty(value) {
var name = TO_NAME(value);
var object = TO_OBJECT(this);
-
- if (%_IsJSProxy(object)) {
- // TODO(rossberg): adjust once there is a story for symbols vs proxies.
- if (IS_SYMBOL(value)) return false;
-
- var handler = %GetHandler(object);
- return CallTrap1(handler, "hasOwn", ProxyDerivedHasOwnTrap, name);
- }
return %HasOwnProperty(object, name);
}
« no previous file with comments | « no previous file | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698