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

Unified Diff: src/isolate.cc

Issue 1138603003: [strong] Fix super in strong classes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable super spread call tests Created 5 years, 7 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/strong/function-arity.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index a90f9c9e46849c56ae8efcd1102c20c1e333d61a..c8d2cad2aeaf6982100b8780fbf40504b4e393ee 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -779,11 +779,18 @@ void Isolate::ReportFailedAccessCheck(Handle<JSObject> receiver) {
bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) {
+ if (name->IsSymbol()) {
+ return Handle<Symbol>::cast(name)->is_private() &&
+ Handle<Symbol>::cast(name)->is_own();
+ }
return name.is_identical_to(factory()->hidden_string());
}
bool Isolate::IsInternallyUsedPropertyName(Object* name) {
+ if (name->IsSymbol()) {
+ return Symbol::cast(name)->is_private() && Symbol::cast(name)->is_own();
+ }
return name == heap()->hidden_string();
}
« no previous file with comments | « no previous file | test/mjsunit/strong/function-arity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698