Promise in Chakra

Ox9A82發表於2017-08-29

http://www.ecma-international.org/ecma-262/#sec-fulfillpromise

25.4.1.3.1 and 25.4.1.3.2
Promise Reject Functions
Promise Resolve Functions
Var JavascriptPromise::EntryResolveOrRejectFunction()

25.4.1.5
NewPromiseCapability ( C )
JavascriptPromiseCapability* JavascriptPromise::NewPromiseCapability

25.4.1.5.1
GetCapabilitiesExecutor Functions(resolve,reject)
Var JavascriptPromise::EntryCapabilitiesExecutorFunction

25.4.2.1
PromiseReactionJob ( reaction, argument )
Var JavascriptPromise::EntryReactionTaskFunction()

25.4.2.2
PromiseResolveThenableJob ( promiseToResolve, thenable, then )
Var JavascriptPromise::EntryResolveThenableTaskFunction()

25.4.3.1  
Promise(executor)
Var JavascriptPromise::NewInstance()

25.4.4.1
Promise.all(iterable)
Var JavascriptPromise::EntryAll()

25.4.4.1.2
Promise.all Resolve Element Functions
Var JavascriptPromise::EntryAllResolveElementFunction()

25.4.1.8
TriggerPromiseReactions ( reactions, argument )
Var JavascriptPromise::TriggerPromiseReactions()

25.4.4.3
Promise.race(iterable)
Var JavascriptPromise::EntryRace()

25.4.4.4
Promise.reject ( r )
Var JavascriptPromise::EntryReject()

25.4.4.5
Promise.resolve ( x )
Var JavascriptPromise::EntryResolve()

25.4.5.1
Promise.prototype.catch(onRejected)
Var JavascriptPromise::EntryCatch()

25.4.5.3
Promise.prototype.then ( onFulfilled, onRejected )
Var JavascriptPromise::EntryThen()


 
// Promise Identity Function as described in ES 2015Section 25.4.5.3.1
Var JavascriptPromise::EntryIdentityFunction()
    
// Promise Thrower Function as described in ES 2015Section 25.4.5.3.3
Var JavascriptPromise::EntryThrowerFunction()

// CreatePromiseCapabilityRecord as described in ES6.0 (draft 29) Section 25.4.1.6.1
JavascriptPromiseCapability* JavascriptPromise::CreatePromiseCapabilityRecord()
   

相關文章