Chromium Code Reviews

Unified Diff: test/codegen_expected/corelib/apply3_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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « test/codegen/language/callable_test.dart ('k') | test/codegen_expected/corelib/apply_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/corelib/apply3_test.js
diff --git a/test/codegen_expected/corelib/apply3_test.js b/test/codegen_expected/corelib/apply3_test.js
index 0249e0968bfbef83d9f548dc45eebaf64be7b5a1..db637a6375d64e6b5435f9fc57a4adf5b036e5e3 100644
--- a/test/codegen_expected/corelib/apply3_test.js
+++ b/test/codegen_expected/corelib/apply3_test.js
@@ -14,9 +14,8 @@ dart_library.library('corelib/apply3_test', null, /* Imports */[
let MapOfSymbol$dynamic = () => (MapOfSymbol$dynamic = dart.constFn(core.Map$(core.Symbol, dart.dynamic)))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
apply3_test.F = dart.callableClass(function F(...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);
@@ -34,9 +33,8 @@ dart_library.library('corelib/apply3_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [], [dart.dynamic])})
});
apply3_test.G = dart.callableClass(function G(...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);
@@ -53,9 +51,8 @@ dart_library.library('corelib/apply3_test', null, /* Imports */[
methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [])})
});
apply3_test.H = dart.callableClass(function H(...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/language/callable_test.dart ('k') | test/codegen_expected/corelib/apply_test.js » ('j') | no next file with comments »

Powered by Google App Engine