Commit 4f0e4bf 1 parent ff5f10e commit 4f0e4bf Copy full SHA for 4f0e4bf
File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,20 @@ export function makeHandledPromise(EPromise) {
52
52
deleteSendOnly ( target , key ) {
53
53
EPromise . resolve ( target ) . delete ( key ) ;
54
54
} ,
55
- // TODO: Change HandledPromise.apply to be
56
- // HandledPromise.applyFunction
57
- // to avoid conflict with constructor .apply behaviour.
55
+ // TODO: Remove when making HandledPromise a constructor
56
+ // to avoid conflict with Function.prototype.apply
58
57
apply ( target , args ) {
59
58
return EPromise . resolve ( target ) . post ( undefined , args ) ;
60
59
} ,
61
60
applySendOnly ( target , args ) {
62
61
EPromise . resolve ( target ) . post ( undefined , args ) ;
63
62
} ,
63
+ applyFunction ( target , args ) {
64
+ return EPromise . resolve ( target ) . post ( undefined , args ) ;
65
+ } ,
66
+ applyFunctionSendOnly ( target , args ) {
67
+ EPromise . resolve ( target ) . post ( undefined , args ) ;
68
+ } ,
64
69
applyMethod ( target , key , args ) {
65
70
return EPromise . resolve ( target ) . post ( key , args ) ;
66
71
} ,
You can’t perform that action at this time.
0 commit comments