Skip to content

A promise implementation based on process.nextTick microtask

Notifications You must be signed in to change notification settings

slashhuang/V8-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V8-promise

A hand-write promise implementation with simpler logic

main logic only 130 line codes

basic utilities

  • 异步处理的microtask

in browser : use mutationObserver

in Node.js : use process.nextTick

  • 避免enumerate的symbol

use symbol to avoid exposure of inner method

mocha 测试结果

测试通过

copyright

@slashhuang

About

A promise implementation based on process.nextTick microtask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published