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

Unified Diff: lib/runtime/dart/_runtime.js

Issue 1754773002: Fix internal NSM helper to use a Dart Symbol (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Canonical symbol Created 4 years, 10 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 | tool/input_sdk/private/operations.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_runtime.js
diff --git a/lib/runtime/dart/_runtime.js b/lib/runtime/dart/_runtime.js
index b7f72f77f98c0b84486158e05c19f11f6eb434ec..e51575a38186654a03c4b0bd3344a4234c3c17f3 100644
--- a/lib/runtime/dart/_runtime.js
+++ b/lib/runtime/dart/_runtime.js
@@ -426,8 +426,11 @@ dart_library.library('dart/_runtime', null, /* Imports */[
}
return true;
}
+ function _dartSymbol(name) {
+ return const_(core.Symbol.new(name.toString()));
+ }
function throwNoSuchMethod(obj, name, pArgs, nArgs, extras) {
- throw_(new core.NoSuchMethodError(obj, name, pArgs, nArgs, extras));
+ throw_(new core.NoSuchMethodError(obj, _dartSymbol(name), pArgs, nArgs, extras));
}
function throwNoSuchMethodFunc(obj, name, pArgs, opt_func) {
if (obj === void 0) obj = opt_func;
« no previous file with comments | « no previous file | tool/input_sdk/private/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698