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

Side by Side Diff: test/codegen/expect/notnull.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/misc.js ('k') | test/codegen/expect/script.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('notnull', null, /* Imports */[ 1 dart_library.library('notnull', 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 notnull = Object.create(null); 8 const notnull = Object.create(null);
9 notnull.intAssignments = function() { 9 notnull.intAssignments = function() {
10 let i = 0; 10 let i = 0;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 try { 213 try {
214 dart.throw(1); 214 dart.throw(1);
215 } catch (e) { 215 } catch (e) {
216 core.print(dart.dsend(e, '+', 1)); 216 core.print(dart.dsend(e, '+', 1));
217 } 217 }
218 218
219 try { 219 try {
220 dart.dsend(null, 'foo'); 220 dart.dsend(null, 'foo');
221 } catch (e) { 221 } catch (e) {
222 let trace = dart.stackTrace(e); 222 let trace = dart.stackTrace(e);
223 core.print(`${typeof e == 'string' ? e : dart.toString(e)} at ${trace}`); 223 core.print(dart.str`${typeof e == 'string' ? e : dart.toString(e)} at ${tr ace}`);
224 } 224 }
225 225
226 }; 226 };
227 dart.fn(notnull.controlFlow); 227 dart.fn(notnull.controlFlow);
228 notnull.cascadesOnNull = function() { 228 notnull.cascadesOnNull = function() {
229 let x = null; 229 let x = null;
230 core.print(dart.hashCode(((() => { 230 core.print(dart.hashCode(((() => {
231 dart.toString(x); 231 dart.toString(x);
232 dart.runtimeType(x); 232 dart.runtimeType(x);
233 return x; 233 return x;
(...skipping 20 matching lines...) Expand all
254 notnull.localEscapes(); 254 notnull.localEscapes();
255 notnull.controlFlow(); 255 notnull.controlFlow();
256 notnull.cascadesOnNull(); 256 notnull.cascadesOnNull();
257 notnull.nullableCycle(); 257 notnull.nullableCycle();
258 notnull.nonNullableCycle(); 258 notnull.nonNullableCycle();
259 }; 259 };
260 dart.fn(notnull.main); 260 dart.fn(notnull.main);
261 // Exports: 261 // Exports:
262 exports.notnull = notnull; 262 exports.notnull = notnull;
263 }); 263 });
OLDNEW
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/codegen/expect/script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698