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

Unified Diff: test/codegen_expected/language/call_operator_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/call_operator_test.js
diff --git a/test/codegen_expected/language/call_operator_test.js b/test/codegen_expected/language/call_operator_test.js
index 6582ec7da4a778cd3907b7ba619c28b79330322d..bef9b90f6237e24dbb82c96fcef632eb2c7a33cf 100644
--- a/test/codegen_expected/language/call_operator_test.js
+++ b/test/codegen_expected/language/call_operator_test.js
@@ -10,9 +10,8 @@ dart_library.library('language/call_operator_test', null, /* Imports */[
const call_operator_test = Object.create(null);
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
call_operator_test.A1 = dart.callableClass(function A1(...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);
@@ -26,9 +25,8 @@ dart_library.library('language/call_operator_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [])})
});
call_operator_test.A2 = dart.callableClass(function A2(...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);
@@ -42,9 +40,8 @@ dart_library.library('language/call_operator_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(core.int, [])})
});
call_operator_test.B = dart.callableClass(function B(...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);
@@ -58,9 +55,8 @@ dart_library.library('language/call_operator_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [])})
});
call_operator_test.C = dart.callableClass(function C(...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);
@@ -74,9 +70,8 @@ dart_library.library('language/call_operator_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [dart.dynamic])})
});
call_operator_test.D = dart.callableClass(function D(...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);
@@ -91,9 +86,8 @@ dart_library.library('language/call_operator_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [], [dart.dynamic])})
});
call_operator_test.E = dart.callableClass(function E(...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/call_function_apply_test.js ('k') | test/codegen_expected/language/call_this_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698