Skip to content
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

Inconsistency for napa/node zone when accessing '__dirname' in global module #58

Open
fs-eire opened this issue Aug 25, 2017 · 1 comment
Labels

Comments

@fs-eire
Copy link
Contributor

fs-eire commented Aug 25, 2017

let napaZone = napa.zone.create('test-dirname-zone', { workers: 1 });
let nodeZone = napa.zone.node;

napaZone.broadcast('var getDirname = function () { return __dirname; };');
nodeZone.broadcast('var getDirname = function () { return __dirname; };');

Napa Zone

napaZone.execute("", "getDirname")

This returns the working directory.

Node Zone

nodeZone.execute("", "getDirname")

This throws exception saying that '__dirname' is undefined.

@fs-eire fs-eire added the bug label Aug 26, 2017
@daiyip daiyip added the P2 label Nov 2, 2017
@ghost
Copy link

ghost commented Nov 15, 2017

Please fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants