Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: test/codegen/expect/language/regress_20840_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/regress_20394_test_none_multi.js ('k') | test/codegen/expect/language/regress_21016_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698