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

Unified Diff: test/codegen_expected/language/function_subtype_call2_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_call2_test.js
diff --git a/test/codegen_expected/language/function_subtype_call2_test.js b/test/codegen_expected/language/function_subtype_call2_test.js
index 300eca3176bbd0a94a6c69a5591454981af692b4..2ffb22a55b703b1725ca1ab13bc33fe48be5f925 100644
--- a/test/codegen_expected/language/function_subtype_call2_test.js
+++ b/test/codegen_expected/language/function_subtype_call2_test.js
@@ -23,9 +23,8 @@ dart_library.library('language/function_subtype_call2_test', null, /* Imports */
function_subtype_call2_test.Boz = dart.typedef('Boz', () => dart.functionType(dart.void, [core.bool]));
function_subtype_call2_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);
@@ -50,9 +49,8 @@ dart_library.library('language/function_subtype_call2_test', null, /* Imports */
function_subtype_call2_test.D1 = D1();
function_subtype_call2_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);
« no previous file with comments | « test/codegen_expected/language/function_subtype_call1_test.js ('k') | test/codegen_expected/language/regress_11010_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698