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

Unified Diff: test/codegen_expected/language/function_subtype_call0_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_call0_test.js
diff --git a/test/codegen_expected/language/function_subtype_call0_test.js b/test/codegen_expected/language/function_subtype_call0_test.js
index debae8c011d227c5e33bae0b961b9740f63a2e3d..f9052b555b2316dc676710ada42d6f6e7b056bea 100644
--- a/test/codegen_expected/language/function_subtype_call0_test.js
+++ b/test/codegen_expected/language/function_subtype_call0_test.js
@@ -14,9 +14,8 @@ dart_library.library('language/function_subtype_call0_test', null, /* Imports */
function_subtype_call0_test.Baz = dart.typedef('Baz', () => dart.functionType(dart.void, [core.bool], {b: core.String}));
function_subtype_call0_test.Boz = dart.typedef('Boz', () => dart.functionType(dart.void, [core.bool]));
function_subtype_call0_test.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);
@@ -30,9 +29,8 @@ dart_library.library('language/function_subtype_call0_test', null, /* Imports */
methods: () => ({call: dart.definiteFunctionType(dart.void, [core.bool], [core.String])})
});
function_subtype_call0_test.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);
@@ -46,9 +44,8 @@ dart_library.library('language/function_subtype_call0_test', null, /* Imports */
methods: () => ({call: dart.definiteFunctionType(dart.void, [core.bool], {b: core.String})})
});
function_subtype_call0_test.C3 = dart.callableClass(function C3(...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