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

Unified Diff: test/codegen_expected/corelib/list_fixed_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/list_fixed_test.js
diff --git a/test/codegen_expected/corelib/list_fixed_test.js b/test/codegen_expected/corelib/list_fixed_test.js
index 46183897145e99821e06b2ed8086b6330e8d81ff..b6497f447603ff87d1e484a3c94433ac41bd3022 100644
--- a/test/codegen_expected/corelib/list_fixed_test.js
+++ b/test/codegen_expected/corelib/list_fixed_test.js
@@ -8,6 +8,7 @@ dart_library.library('corelib/list_fixed_test', null, /* Imports */[
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const list_fixed_test = Object.create(null);
+ let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))();
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
@@ -22,7 +23,7 @@ dart_library.library('corelib/list_fixed_test', null, /* Imports */[
}
expect$.Expect.throws(dart.fn(() => dart.dsend(a, 'clear'), VoidTovoid()), dart.fn(e => core.UnsupportedError.is(e), dynamicTobool()));
expect$.Expect.equals(42, dart.dload(a, 'length'));
- a = core.List.filled(42, -2);
+ a = ListOfint().filled(42, -2);
expect$.Expect.equals(42, dart.dload(a, 'length'));
expect$.Expect.throws(dart.fn(() => dart.dsend(a, 'add', 499), VoidTovoid()), dart.fn(e => core.UnsupportedError.is(e), dynamicTobool()));
expect$.Expect.equals(42, dart.dload(a, 'length'));

Powered by Google App Engine
This is Rietveld 408576698