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

Unified Diff: test/codegen_expected/corelib/has_next_iterator_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/has_next_iterator_test.js
diff --git a/test/codegen_expected/corelib/has_next_iterator_test.js b/test/codegen_expected/corelib/has_next_iterator_test.js
index 73099616e55fdd029650460689a367d88619cc57..430fbcaab7333cc88438264b55eb66a8c1f4e49e 100644
--- a/test/codegen_expected/corelib/has_next_iterator_test.js
+++ b/test/codegen_expected/corelib/has_next_iterator_test.js
@@ -10,6 +10,7 @@ dart_library.library('corelib/has_next_iterator_test', null, /* Imports */[
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const has_next_iterator_test = Object.create(null);
+ let HasNextIteratorOfint = () => (HasNextIteratorOfint = dart.constFn(collection.HasNextIterator$(core.int)))();
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
@@ -20,7 +21,7 @@ dart_library.library('corelib/has_next_iterator_test', null, /* Imports */[
expect$.Expect.isFalse(it.hasNext);
expect$.Expect.throws(dart.fn(() => it.next(), VoidTovoid()), dart.fn(e => core.StateError.is(e), dynamicTobool()));
expect$.Expect.isFalse(it.hasNext);
- it = new collection.HasNextIterator(JSArrayOfint().of([1])[dartx.iterator]);
+ it = new (HasNextIteratorOfint())(JSArrayOfint().of([1])[dartx.iterator]);
expect$.Expect.isTrue(it.hasNext);
expect$.Expect.isTrue(it.hasNext);
expect$.Expect.equals(1, it.next());
@@ -28,7 +29,7 @@ dart_library.library('corelib/has_next_iterator_test', null, /* Imports */[
expect$.Expect.isFalse(it.hasNext);
expect$.Expect.throws(dart.fn(() => it.next(), VoidTovoid()), dart.fn(e => core.StateError.is(e), dynamicTobool()));
expect$.Expect.isFalse(it.hasNext);
- it = new collection.HasNextIterator(JSArrayOfint().of([1, 2])[dartx.iterator]);
+ it = new (HasNextIteratorOfint())(JSArrayOfint().of([1, 2])[dartx.iterator]);
expect$.Expect.isTrue(it.hasNext);
expect$.Expect.isTrue(it.hasNext);
expect$.Expect.equals(1, it.next());
« no previous file with comments | « test/codegen_expected/corelib/collection_test.js ('k') | test/codegen_expected/corelib/hash_set_test_01_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698