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

Unified Diff: test/codegen_expected/corelib/apply_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/corelib/apply_test.js
diff --git a/test/codegen_expected/corelib/apply_test.js b/test/codegen_expected/corelib/apply_test.js
index 9ba6a80dfe5143f6bb7d0282bcadaba0fab67467..2f3d40169bbab80bcb0c65cafa8a8071ab3620a7 100644
--- a/test/codegen_expected/corelib/apply_test.js
+++ b/test/codegen_expected/corelib/apply_test.js
@@ -65,9 +65,8 @@ dart_library.library('corelib/apply_test', null, /* Imports */[
methods: () => ({foo: dart.definiteFunctionType(core.int, [dart.dynamic])})
});
apply_test.Callable = dart.callableClass(function Callable(...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/corelib/apply3_test.js ('k') | test/codegen_expected/language/call_argument_inference_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698