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

Side by Side Diff: test/codegen_expected/language/regress_21793_test_none_multi.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, 4 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 unified diff | Download patch
OLDNEW
1 dart_library.library('language/regress_21793_test_none_multi', null, /* Imports */[ 1 dart_library.library('language/regress_21793_test_none_multi', null, /* Imports */[
2 'dart_sdk' 2 'dart_sdk'
3 ], function load__regress_21793_test_none_multi(exports, dart_sdk) { 3 ], function load__regress_21793_test_none_multi(exports, dart_sdk) {
4 'use strict'; 4 'use strict';
5 const core = dart_sdk.core; 5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
8 const regress_21793_test_none_multi = Object.create(null); 8 const regress_21793_test_none_multi = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 regress_21793_test_none_multi.A = dart.callableClass(function A(...args) { 10 regress_21793_test_none_multi.A = dart.callableClass(function A(...args) {
11 const self = this;
12 function call(...args) { 11 function call(...args) {
13 return self.call.apply(self, args); 12 return call.call.apply(call, args);
14 } 13 }
15 call.__proto__ = this.__proto__; 14 call.__proto__ = this.__proto__;
16 call.new.apply(call, args); 15 call.new.apply(call, args);
17 return call; 16 return call;
18 }, class A extends core.Object { 17 }, class A extends core.Object {
19 call(x) { 18 call(x) {
20 return x; 19 return x;
21 } 20 }
22 }); 21 });
23 dart.setSignature(regress_21793_test_none_multi.A, { 22 dart.setSignature(regress_21793_test_none_multi.A, {
24 methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [dart.dynamic ])}) 23 methods: () => ({call: dart.definiteFunctionType(dart.dynamic, [dart.dynamic ])})
25 }); 24 });
26 regress_21793_test_none_multi.main = function() { 25 regress_21793_test_none_multi.main = function() {
27 core.print(dart.dcall(new regress_21793_test_none_multi.A(), 499)); 26 core.print(dart.dcall(new regress_21793_test_none_multi.A(), 499));
28 }; 27 };
29 dart.fn(regress_21793_test_none_multi.main, VoidTodynamic()); 28 dart.fn(regress_21793_test_none_multi.main, VoidTodynamic());
30 // Exports: 29 // Exports:
31 exports.regress_21793_test_none_multi = regress_21793_test_none_multi; 30 exports.regress_21793_test_none_multi = regress_21793_test_none_multi;
32 }); 31 });
OLDNEW
« no previous file with comments | « test/codegen_expected/language/regress_11010_test.js ('k') | tool/input_sdk/private/ddc_runtime/classes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698