OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/switch8_test', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__switch8_test(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const dart = dart_sdk.dart; |
| 7 const dartx = dart_sdk.dartx; |
| 8 const switch8_test = Object.create(null); |
| 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 10 switch8_test.A = class A extends core.Object { |
| 11 new() { |
| 12 } |
| 13 }; |
| 14 dart.setSignature(switch8_test.A, { |
| 15 constructors: () => ({new: dart.definiteFunctionType(switch8_test.A, [])}) |
| 16 }); |
| 17 let const$; |
| 18 switch8_test.main = function() { |
| 19 switch (core.List.new(1)[dartx.get](0)) { |
| 20 case const$ || (const$ = dart.const(new switch8_test.A())): |
| 21 { |
| 22 dart.throw('Test failed'); |
| 23 } |
| 24 } |
| 25 }; |
| 26 dart.fn(switch8_test.main, VoidTodynamic()); |
| 27 // Exports: |
| 28 exports.switch8_test = switch8_test; |
| 29 }); |
OLD | NEW |