OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/missing_const_constructor_test_01_multi', null, /
* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__missing_const_constructor_test_01_multi(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 missing_const_constructor_test_01_multi = Object.create(null); |
| 9 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 10 missing_const_constructor_test_01_multi.GoodClass = class GoodClass extends co
re.Object { |
| 11 new() { |
| 12 } |
| 13 }; |
| 14 dart.setSignature(missing_const_constructor_test_01_multi.GoodClass, { |
| 15 constructors: () => ({new: dart.definiteFunctionType(missing_const_construct
or_test_01_multi.GoodClass, [])}) |
| 16 }); |
| 17 missing_const_constructor_test_01_multi.GOOD_CLASS = dart.const(new missing_co
nst_constructor_test_01_multi.GoodClass()); |
| 18 missing_const_constructor_test_01_multi.main = function() { |
| 19 try { |
| 20 core.print(missing_const_constructor_test_01_multi.GOOD_CLASS); |
| 21 } catch (e) { |
| 22 } |
| 23 |
| 24 }; |
| 25 dart.fn(missing_const_constructor_test_01_multi.main, VoidTovoid()); |
| 26 // Exports: |
| 27 exports.missing_const_constructor_test_01_multi = missing_const_constructor_te
st_01_multi; |
| 28 }); |
OLD | NEW |