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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1993293002: fix #577 - correctly toString ES Symbols (Closed) Base URL: git@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/browser/runtime_tests.js » ('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 2bf3a3670528a403fdb1b9892be69cb3cae128fc..9f36c8f92425b85856762876d923322fe4fce4bf 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -600,7 +600,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
if (extension != null) {
return obj[dartx.toString]();
}
- return "" + obj;
+ return obj.toString();
};
dart.noSuchMethod = function(obj, invocation) {
if (obj == null) {
« no previous file with comments | « no previous file | test/browser/runtime_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698