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

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

Issue 2201973002: fix optional params to mock methods, allow all signatures (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix getters and setters 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/language/no_such_method_subtype_test.js
diff --git a/test/codegen_expected/language/no_such_method_subtype_test.js b/test/codegen_expected/language/no_such_method_subtype_test.js
index 7d2c5cf41a15788e6e170b92ca70bc1c5cb2528f..57d67ccdd93abe149fe7f05c8ba0652fa28c8868 100644
--- a/test/codegen_expected/language/no_such_method_subtype_test.js
+++ b/test/codegen_expected/language/no_such_method_subtype_test.js
@@ -23,8 +23,8 @@ dart_library.library('language/no_such_method_subtype_test', null, /* Imports */
noSuchMethod(im) {
return 84;
}
- foo() {
- return this.noSuchMethod(new dart.InvocationImpl('foo', [], {isMethod: true}));
+ foo(...args) {
+ return this.noSuchMethod(new dart.InvocationImpl('foo', args, {isMethod: true}));
}
};
no_such_method_subtype_test.B[dart.implements] = () => [no_such_method_subtype_test.A];

Powered by Google App Engine
This is Rietveld 408576698