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

Unified Diff: test/codegen_expected/language/range_analysis2_test.js

Issue 2214263005: Mark recursive_inheritance_test as passing (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Bumped pubspec Created 4 years, 4 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/language/range_analysis2_test.js
diff --git a/test/codegen_expected/language/range_analysis2_test.js b/test/codegen_expected/language/range_analysis2_test.js
index ec0159e0b573379c97bf06483f27266c07da2c75..9de6f37c0fedc721a4d33b6080ec24130b848bdb 100644
--- a/test/codegen_expected/language/range_analysis2_test.js
+++ b/test/codegen_expected/language/range_analysis2_test.js
@@ -10,15 +10,16 @@ dart_library.library('language/range_analysis2_test', null, /* Imports */[
const expect$ = expect.expect;
const range_analysis2_test = Object.create(null);
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
- let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core.int, [])))();
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
range_analysis2_test.main = function() {
let a = 0;
let b = JSArrayOfint().of([1]);
function foo() {
return dart.notNull(b[dartx.get](a--)) + dart.notNull(b[dartx.get](a));
}
- dart.fn(foo, VoidTodynamic());
+ dart.fn(foo, VoidToint());
expect$.Expect.throws(foo, dart.fn(e => core.RangeError.is(e), dynamicTobool()));
};
dart.fn(range_analysis2_test.main, VoidTodynamic());
« no previous file with comments | « test/codegen_expected/language/param2_test.js ('k') | test/codegen_expected/language/recursive_inheritance_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698