Skip to content

Commit

Permalink
Promise impl updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hydroper committed May 11, 2024
1 parent f3ce075 commit f700cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion as3/promise/Promise.as
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ package {
return this.then(null, onRejected);
}

public function then(onFulfilled: function(T): U, onRejected: function(*): E = null):Promise.<*> {
public function then(onFulfilled: Function, onRejected: Function = null):Promise.<*> {
var prom = new Promise.<*>(function(_a:*, _b:*):void {});
Promise.<T>.handle(this, new PromiseHandler(onFulfilled, onRejected, prom));
return prom;
Expand Down

0 comments on commit f700cff

Please sign in to comment.