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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1944293003: Fix accessing private members on extension classes. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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:
Download patch
« no previous file with comments | « no previous file | test/codegen/lib/html/private_extension_member_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 3b3eca59f97fac53bfc7beec812900b340778421..90746dc00d87a934e6420319da9f38f1a702f235 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -239,6 +239,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
});
};
dart.canonicalMember = function(obj, name) {
+ if (typeof name === 'symbol') return name;
if (obj != null && obj[dart._extensionType]) return dart.dartx[name];
if (name == 'constructor' || name == 'prototype') {
name = '+' + name;
« no previous file with comments | « no previous file | test/codegen/lib/html/private_extension_member_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698