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

Unified Diff: test/codegen_expected/corelib/iterable_tostring_test.js

Issue 2102053003: Remove DDC custom error list now that strong mode analyzer handles it (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: another fix 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen_expected/corelib/iterable_tostring_test.js
diff --git a/test/codegen_expected/corelib/iterable_tostring_test.js b/test/codegen_expected/corelib/iterable_tostring_test.js
index 2ff5c64993ab4ad5a34e14945bd6631620a911cf..b44dfeb7ac76bc2e5d03418a151141b2f6ff2e87 100644
--- a/test/codegen_expected/corelib/iterable_tostring_test.js
+++ b/test/codegen_expected/corelib/iterable_tostring_test.js
@@ -9,6 +9,7 @@ dart_library.library('corelib/iterable_tostring_test', null, /* Imports */[
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const iterable_tostring_test = Object.create(null);
+ let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))();
let intTodynamic = () => (intTodynamic = dart.constFn(dart.functionType(dart.dynamic, [core.int])))();
let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.int, [core.int])))();
let int__ToString = () => (int__ToString = dart.constFn(dart.definiteFunctionType(core.String, [core.int], [dart.dynamic])))();
@@ -18,7 +19,7 @@ dart_library.library('corelib/iterable_tostring_test', null, /* Imports */[
if (func === void 0) func = null;
let list = null;
if (func == null) {
- list = core.List.generate(len, dart.fn(x => x, intToint()));
+ list = ListOfint().generate(len, dart.fn(x => x, intToint()));
} else {
list = core.List.generate(len, intTodynamic()._check(func));
}

Powered by Google App Engine
This is Rietveld 408576698