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

Unified Diff: test/codegen_expected/language/function_subtype3_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_subtype3_test.js
diff --git a/test/codegen_expected/language/function_subtype3_test.js b/test/codegen_expected/language/function_subtype3_test.js
index d966dfb82b5d5edcf5d7a186112e0bd0ab4ca26a..8a2683f51f6eed91864eeb03c4f2adec1adc2af4 100644
--- a/test/codegen_expected/language/function_subtype3_test.js
+++ b/test/codegen_expected/language/function_subtype3_test.js
@@ -17,9 +17,8 @@ dart_library.library('language/function_subtype3_test', null, /* Imports */[
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
function_subtype3_test.FunctionLike$ = dart.generic(T => {
const FunctionLike = dart.callableClass(function FunctionLike(...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