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

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

Issue 2200913002: fixes #616, statics on callable functions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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/function_subtype_call1_test.js
diff --git a/test/codegen_expected/language/function_subtype_call1_test.js b/test/codegen_expected/language/function_subtype_call1_test.js
index d73e52c4d4d1e411efd23065c517edfd4df8fe65..7176e0f2d984788b0e8b7bb5c9f3585a635283a7 100644
--- a/test/codegen_expected/language/function_subtype_call1_test.js
+++ b/test/codegen_expected/language/function_subtype_call1_test.js
@@ -21,9 +21,8 @@ dart_library.library('language/function_subtype_call1_test', null, /* Imports */
function_subtype_call1_test.Boz = dart.typedef('Boz', () => dart.functionType(dart.void, [core.bool]));
function_subtype_call1_test.C1$ = dart.generic(T => {
const C1 = dart.callableClass(function C1(...args) {
- const self = this;
function call(...args) {
- return self.call.apply(self, args);
+ return call.call.apply(call, args);
}
call.__proto__ = this.__proto__;
call.new.apply(call, args);
@@ -43,9 +42,8 @@ dart_library.library('language/function_subtype_call1_test', null, /* Imports */
function_subtype_call1_test.C1 = C1();
function_subtype_call1_test.C2$ = dart.generic(T => {
const C2 = dart.callableClass(function C2(...args) {
- const self = this;
function call(...args) {
- return self.call.apply(self, args);
+ return call.call.apply(call, args);
}
call.__proto__ = this.__proto__;
call.new.apply(call, args);

Powered by Google App Engine
This is Rietveld 408576698