| OLD | NEW |
| 1 var _js_helper; | 1 var _js_helper; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class NoSideEffects extends core.Object { | 4 class NoSideEffects extends core.Object { |
| 5 NoSideEffects() { | 5 NoSideEffects() { |
| 6 } | 6 } |
| 7 } | 7 } |
| 8 class NoThrows extends core.Object { | 8 class NoThrows extends core.Object { |
| 9 NoThrows() { | 9 NoThrows() { |
| 10 } | 10 } |
| (...skipping 2403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2414 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokePro
pertyErrorOn(void 0)), TypeErrorDecoder); | 2414 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokePro
pertyErrorOn(void 0)), TypeErrorDecoder); |
| 2415 }, | 2415 }, |
| 2416 get undefinedLiteralPropertyPattern() { | 2416 get undefinedLiteralPropertyPattern() { |
| 2417 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokePro
pertyErrorOnUndefined()), TypeErrorDecoder); | 2417 return dart.as(TypeErrorDecoder.extractPattern(TypeErrorDecoder.provokePro
pertyErrorOnUndefined()), TypeErrorDecoder); |
| 2418 } | 2418 } |
| 2419 }); | 2419 }); |
| 2420 let _message = Symbol('_message'); | 2420 let _message = Symbol('_message'); |
| 2421 class NullError extends core.Error { | 2421 class NullError extends core.Error { |
| 2422 NullError(message, match) { | 2422 NullError(message, match) { |
| 2423 this[_message] = message; | 2423 this[_message] = message; |
| 2424 this[_method] = dart.as(match == null ? null : match.method, core.String); | 2424 this[_method] = match == null ? null : dart.as(match.method, core.String); |
| 2425 super.Error(); | 2425 super.Error(); |
| 2426 } | 2426 } |
| 2427 toString() { | 2427 toString() { |
| 2428 if (this[_method] == null) | 2428 if (this[_method] == null) |
| 2429 return `NullError: ${this[_message]}`; | 2429 return `NullError: ${this[_message]}`; |
| 2430 return `NullError: Cannot call "${this[_method]}" on null`; | 2430 return `NullError: Cannot call "${this[_method]}" on null`; |
| 2431 } | 2431 } |
| 2432 } | 2432 } |
| 2433 NullError[dart.implements] = () => [core.NoSuchMethodError]; | 2433 NullError[dart.implements] = () => [core.NoSuchMethodError]; |
| 2434 class JsNoSuchMethodError extends core.Error { | 2434 class JsNoSuchMethodError extends core.Error { |
| 2435 JsNoSuchMethodError(message, match) { | 2435 JsNoSuchMethodError(message, match) { |
| 2436 this[_message] = message; | 2436 this[_message] = message; |
| 2437 this[_method] = dart.as(match == null ? null : match.method, core.String); | 2437 this[_method] = match == null ? null : dart.as(match.method, core.String); |
| 2438 this[_receiver] = dart.as(match == null ? null : match.receiver, core.Stri
ng); | 2438 this[_receiver] = match == null ? null : dart.as(match.receiver, core.Stri
ng); |
| 2439 super.Error(); | 2439 super.Error(); |
| 2440 } | 2440 } |
| 2441 toString() { | 2441 toString() { |
| 2442 if (this[_method] == null) | 2442 if (this[_method] == null) |
| 2443 return `NoSuchMethodError: ${this[_message]}`; | 2443 return `NoSuchMethodError: ${this[_message]}`; |
| 2444 if (this[_receiver] == null) { | 2444 if (this[_receiver] == null) { |
| 2445 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa
ge]})`; | 2445 return `NoSuchMethodError: Cannot call "${this[_method]}" (${this[_messa
ge]})`; |
| 2446 } | 2446 } |
| 2447 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece
iver]}" ` + `(${this[_message]})`; | 2447 return `NoSuchMethodError: Cannot call "${this[_method]}" on "${this[_rece
iver]}" ` + `(${this[_message]})`; |
| 2448 } | 2448 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 let undefProperty = TypeErrorDecoder.undefinedPropertyPattern; | 2510 let undefProperty = TypeErrorDecoder.undefinedPropertyPattern; |
| 2511 let undefLiteralProperty = TypeErrorDecoder.undefinedLiteralPropertyPatter
n; | 2511 let undefLiteralProperty = TypeErrorDecoder.undefinedLiteralPropertyPatter
n; |
| 2512 if ((match = dart.dsend(nsme, 'matchTypeError', message)) != null) { | 2512 if ((match = dart.dsend(nsme, 'matchTypeError', message)) != null) { |
| 2513 return saveStackTrace(new JsNoSuchMethodError(dart.as(message, core.Stri
ng), match)); | 2513 return saveStackTrace(new JsNoSuchMethodError(dart.as(message, core.Stri
ng), match)); |
| 2514 } else if ((match = dart.dsend(notClosure, 'matchTypeError', message)) !=
null) { | 2514 } else if ((match = dart.dsend(notClosure, 'matchTypeError', message)) !=
null) { |
| 2515 match.method = "call"; | 2515 match.method = "call"; |
| 2516 return saveStackTrace(new JsNoSuchMethodError(dart.as(message, core.Stri
ng), match)); | 2516 return saveStackTrace(new JsNoSuchMethodError(dart.as(message, core.Stri
ng), match)); |
| 2517 } else if (dart.notNull((match = dart.dsend(nullCall, 'matchTypeError', me
ssage)) != null) || dart.notNull((match = dart.dsend(nullLiteralCall, 'matchType
Error', message)) != null) || dart.notNull((match = dart.dsend(undefCall, 'match
TypeError', message)) != null) || dart.notNull((match = dart.dsend(undefLiteralC
all, 'matchTypeError', message)) != null) || dart.notNull((match = dart.dsend(nu
llProperty, 'matchTypeError', message)) != null) || dart.notNull((match = dart.d
send(nullLiteralCall, 'matchTypeError', message)) != null) || dart.notNull((matc
h = dart.dsend(undefProperty, 'matchTypeError', message)) != null) || dart.notNu
ll((match = dart.dsend(undefLiteralProperty, 'matchTypeError', message)) != null
)) { | 2517 } else if (dart.notNull((match = dart.dsend(nullCall, 'matchTypeError', me
ssage)) != null) || dart.notNull((match = dart.dsend(nullLiteralCall, 'matchType
Error', message)) != null) || dart.notNull((match = dart.dsend(undefCall, 'match
TypeError', message)) != null) || dart.notNull((match = dart.dsend(undefLiteralC
all, 'matchTypeError', message)) != null) || dart.notNull((match = dart.dsend(nu
llProperty, 'matchTypeError', message)) != null) || dart.notNull((match = dart.d
send(nullLiteralCall, 'matchTypeError', message)) != null) || dart.notNull((matc
h = dart.dsend(undefProperty, 'matchTypeError', message)) != null) || dart.notNu
ll((match = dart.dsend(undefLiteralProperty, 'matchTypeError', message)) != null
)) { |
| 2518 return saveStackTrace(new NullError(dart.as(message, core.String), match
)); | 2518 return saveStackTrace(new NullError(dart.as(message, core.String), match
)); |
| 2519 } | 2519 } |
| 2520 return saveStackTrace(new UnknownJsTypeError(dart.as(typeof message == 'st
ring' ? message : '', core.String))); | 2520 return saveStackTrace(new UnknownJsTypeError(typeof message == 'string' ?
dart.as(message, core.String) : '')); |
| 2521 } | 2521 } |
| 2522 if (ex instanceof RangeError) { | 2522 if (ex instanceof RangeError) { |
| 2523 if (typeof message == 'string' && dart.notNull(contains(dart.as(message, c
ore.String), 'call stack'))) { | 2523 if (typeof message == 'string' && dart.notNull(contains(dart.as(message, c
ore.String), 'call stack'))) { |
| 2524 return new core.StackOverflowError(); | 2524 return new core.StackOverflowError(); |
| 2525 } | 2525 } |
| 2526 return saveStackTrace(new core.ArgumentError()); | 2526 return saveStackTrace(new core.ArgumentError()); |
| 2527 } | 2527 } |
| 2528 if (typeof InternalError == "function" && ex instanceof InternalError) { | 2528 if (typeof InternalError == "function" && ex instanceof InternalError) { |
| 2529 if (typeof message == 'string' && dart.notNull(dart.equals(message, 'too m
uch recursion'))) { | 2529 if (typeof message == 'string' && dart.notNull(dart.equals(message, 'too m
uch recursion'))) { |
| 2530 return new core.StackOverflowError(); | 2530 return new core.StackOverflowError(); |
| (...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4077 exports.jsonEncodeNative = jsonEncodeNative; | 4077 exports.jsonEncodeNative = jsonEncodeNative; |
| 4078 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4078 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
| 4079 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4079 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
| 4080 exports.DeferredLoadCallback = DeferredLoadCallback; | 4080 exports.DeferredLoadCallback = DeferredLoadCallback; |
| 4081 exports.loadDeferredLibrary = loadDeferredLibrary; | 4081 exports.loadDeferredLibrary = loadDeferredLibrary; |
| 4082 exports.MainError = MainError; | 4082 exports.MainError = MainError; |
| 4083 exports.missingMain = missingMain; | 4083 exports.missingMain = missingMain; |
| 4084 exports.badMain = badMain; | 4084 exports.badMain = badMain; |
| 4085 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4085 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
| 4086 })(_js_helper || (_js_helper = {})); | 4086 })(_js_helper || (_js_helper = {})); |
| OLD | NEW |