Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Set 'this' reference to module.exports in module's top level code #232

Merged
merged 1 commit into from
May 4, 2018

Conversation

fs-eire
Copy link
Contributor

@fs-eire fs-eire commented May 3, 2018

In the top-level code in a Node module, this is equivalent to module.exports. Some packages uses this.some_func = xxx instead of module.exports.some_func = xxx, which is not working in current Napa.js worker.

This is supposed to fix #231.

@fs-eire fs-eire merged commit 715b293 into master May 4, 2018
@fs-eire fs-eire deleted the module-fix-this-ref branch May 4, 2018 19:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FlatBuffers support
2 participants