OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/regress_20840_test', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__regress_20840_test(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const _interceptors = dart_sdk._interceptors; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const regress_20840_test = Object.create(null); |
| 10 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c
ore.int)))(); |
| 11 let intTovoid = () => (intTovoid = dart.constFn(dart.definiteFunctionType(dart
.void, [core.int])))(); |
| 12 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 13 regress_20840_test.SomeClass = class SomeClass extends core.Object { |
| 14 new() { |
| 15 this.someField = null; |
| 16 JSArrayOfint().of([1])[dartx.forEach](dart.fn(o => this.someMethod(), intT
ovoid())); |
| 17 this.someField = new core.Object(); |
| 18 } |
| 19 someMethod() { |
| 20 if (this.someField != null) { |
| 21 dart.throw("FAIL"); |
| 22 } |
| 23 } |
| 24 }; |
| 25 dart.setSignature(regress_20840_test.SomeClass, { |
| 26 constructors: () => ({new: dart.definiteFunctionType(regress_20840_test.Some
Class, [])}), |
| 27 methods: () => ({someMethod: dart.definiteFunctionType(dart.void, [])}) |
| 28 }); |
| 29 regress_20840_test.main = function() { |
| 30 new regress_20840_test.SomeClass(); |
| 31 }; |
| 32 dart.fn(regress_20840_test.main, VoidTovoid()); |
| 33 // Exports: |
| 34 exports.regress_20840_test = regress_20840_test; |
| 35 }); |
OLD | NEW |