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

Unified Diff: src/v8natives.js

Issue 760883002: Add interceptor support for symbols (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix test Created 6 years, 1 month 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/objects-inl.h ('k') | test/cctest/test-accessors.cc » ('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 765c1e6c996da0421d8068c4046d71c9b5db53ea..7fb317db7e9e2860ab4cd5c6e53da54d4a4c3de5 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1041,6 +1041,7 @@ function ToNameArray(obj, trap, includeSymbols) {
function ObjectGetOwnPropertyKeys(obj, filter) {
var nameArrays = new InternalArray();
filter |= PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL;
+ var interceptorInfo = %GetInterceptorInfo(obj);
// Find all the indexed properties.
@@ -1051,9 +1052,7 @@ function ObjectGetOwnPropertyKeys(obj, filter) {
ownElementNames[i] = %_NumberToString(ownElementNames[i]);
}
nameArrays.push(ownElementNames);
-
// Get names for indexed interceptor properties.
- var interceptorInfo = %GetInterceptorInfo(obj);
if ((interceptorInfo & 1) != 0) {
var indexedInterceptorNames = %GetIndexedInterceptorElementNames(obj);
if (!IS_UNDEFINED(indexedInterceptorNames)) {
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698