Skip to content

Commit

Permalink
Removed old _Reject
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmolot committed Jul 14, 2024
1 parent b5ed9b2 commit d8fd8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion promise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ do
elseif istable(value) then
local ok, thenable = pcall(getThenable, value)
if not ok then
return self:_Reject(thenable)
return reject(self, thenable)
end
if thenable then
return resolveThenable(self, value, thenable)
Expand Down
2 changes: 1 addition & 1 deletion promise.yue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class Promise
finalizePromise( value, @ )
elseif istable value
ok, thenable = try getThenable(value)
unless ok then return @_Reject thenable
unless ok then return reject( @, thenable )

if thenable
resolveThenable( @, value, thenable )
Expand Down

0 comments on commit d8fd8fa

Please sign in to comment.