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

Side by Side Diff: test/codegen/expect/script.js

Issue 1989663002: fix #470, string interpolation now respects Dart toString (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:
View unified diff | Download patch
« no previous file with comments | « test/codegen/expect/notnull.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('script', null, /* Imports */[ 1 dart_library.library('script', null, /* Imports */[
2 'dart_sdk' 2 'dart_sdk'
3 ], function(exports, dart_sdk) { 3 ], function(exports, dart_sdk) {
4 'use strict'; 4 'use strict';
5 const core = dart_sdk.core; 5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
8 const script = Object.create(null); 8 const script = Object.create(null);
9 script.main = function(args) { 9 script.main = function(args) {
10 let name = args[dartx.join](' '); 10 let name = args[dartx.join](' ');
11 if (name == '') name = 'world'; 11 if (name == '') name = 'world';
12 core.print(`hello ${name}`); 12 core.print(dart.str`hello ${name}`);
13 }; 13 };
14 dart.fn(script.main, dart.void, [core.List$(core.String)]); 14 dart.fn(script.main, dart.void, [core.List$(core.String)]);
15 // Exports: 15 // Exports:
16 exports.script = script; 16 exports.script = script;
17 }); 17 });
OLDNEW
« no previous file with comments | « test/codegen/expect/notnull.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698