8000 Add polyfill module implementing NodeJS-like behavior by Asondo · Pull Request #13 · mongoose-os-libs/mjs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add polyfill module implementing NodeJS-like behavior #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 17, 2019

Conversation

Asondo
Copy link
Contributor
@Asondo Asondo commented Jul 12, 2019

Module implements standard js console, import/export like NodeJS, timer routines (setTimeout, clearTimeout, etc.) and other.

Asondo added 3 commits July 12, 2019 17:55
Module implements standard js console, import/export like NodeJS, timer routines (setTimeout, clearTimeout, etc.) and other.
In require method clear module.exports after importing by null instead of undefined. In that case modules cache would work fine for modules without export
New method __resolvePath implements path normalization to simplify requiring modules in NodeJS manner (require('moduleName') without '.js')
@cpq cpq merged commit a65e6d7 into mongoose-os-libs:master Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0