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

Unified Diff: test/codegen_expected/language/call_this_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_this_test.js
diff --git a/test/codegen_expected/language/call_this_test.js b/test/codegen_expected/language/call_this_test.js
index 18442649c0ab76a7583974ff52c8285a920039e7..a5fb0ea2b27d88456b50e998eb264a59e8c40f92 100644
--- a/test/codegen_expected/language/call_this_test.js
+++ b/test/codegen_expected/language/call_this_test.js
@@ -10,9 +10,8 @@ dart_library.library('language/call_this_test', null, /* Imports */[
const call_this_test = Object.create(null);
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
call_this_test.A = dart.callableClass(function A(...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_operator_test.js ('k') | test/codegen_expected/language/call_with_no_such_method_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698