| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |