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

Unified Diff: test/codegen_expected/corelib/hash_set_test_01_multi.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/hash_set_test_01_multi.js
diff --git a/test/codegen_expected/corelib/hash_set_test_01_multi.js b/test/codegen_expected/corelib/hash_set_test_01_multi.js
index 82cd938e62e69e5851fd297361d1a680a1a50f1e..e4bf9881c4f94a9d45c1e5d20ef2f733811e84c8 100644
--- a/test/codegen_expected/corelib/hash_set_test_01_multi.js
+++ b/test/codegen_expected/corelib/hash_set_test_01_multi.js
@@ -11,6 +11,8 @@ dart_library.library('corelib/hash_set_test_01_multi', null, /* Imports */[
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const hash_set_test_01_multi = Object.create(null);
+ let SetOfint = () => (SetOfint = dart.constFn(core.Set$(core.int)))();
+ let IterableOfint = () => (IterableOfint = dart.constFn(core.Iterable$(core.int)))();
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
let VoidToSet = () => (VoidToSet = dart.constFn(dart.functionType(core.Set, [])))();
let IterableToSet = () => (IterableToSet = dart.constFn(dart.functionType(core.Set, [core.Iterable])))();
@@ -33,7 +35,7 @@ dart_library.library('corelib/hash_set_test_01_multi', null, /* Imports */[
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
hash_set_test_01_multi.testSet = function(newSet, newSetFrom) {
function gen(from, to) {
- return core.Set.from(core.Iterable.generate(dart.notNull(to) - dart.notNull(from), dart.fn(n => dart.notNull(n) + dart.notNull(from), intToint())));
+ return SetOfint().from(IterableOfint().generate(dart.notNull(to) - dart.notNull(from), dart.fn(n => dart.notNull(n) + dart.notNull(from), intToint())));
}
dart.fn(gen, intAndintToSet());
function odd(n) {
« no previous file with comments | « test/codegen_expected/corelib/has_next_iterator_test.js ('k') | test/codegen_expected/corelib/hash_set_test_none_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698