OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/issue21079_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__issue21079_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const mirrors = dart_sdk.mirrors; |
| 8 const isolate = dart_sdk.isolate; |
| 9 const dart = dart_sdk.dart; |
| 10 const dartx = dart_sdk.dartx; |
| 11 const expect$ = expect.expect; |
| 12 const issue21079_test = Object.create(null); |
| 13 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 14 issue21079_test.main = function() { |
| 15 expect$.Expect.isTrue(dart.equals(mirrors.reflectClass(dart.wrapType(issue21
079_test.MyException)).superclass.reflectedType, dart.wrapType(isolate.IsolateSp
awnException))); |
| 16 expect$.Expect.isTrue(dart.equals(mirrors.reflectClass(dart.wrapType(isolate
.IsolateSpawnException)).reflectedType, dart.wrapType(isolate.IsolateSpawnExcept
ion))); |
| 17 }; |
| 18 dart.fn(issue21079_test.main, VoidTovoid()); |
| 19 issue21079_test.MyException = class MyException extends isolate.IsolateSpawnEx
ception { |
| 20 new() { |
| 21 super.new("Test"); |
| 22 } |
| 23 }; |
| 24 dart.setSignature(issue21079_test.MyException, { |
| 25 constructors: () => ({new: dart.definiteFunctionType(issue21079_test.MyExcep
tion, [])}) |
| 26 }); |
| 27 // Exports: |
| 28 exports.issue21079_test = issue21079_test; |
| 29 }); |
OLD | NEW |