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

Fix for obscure bug when running in VM #12

Merged
merged 2 commits into from
Nov 25, 2012
Merged

Conversation

danmactough
Copy link
Contributor

It seems that vm.runInContext() causes the instanceof tests to fail. Let's use more reliable .constructor.name tests, instead.

It seems that vm.runInContext() causes the "instanceof" tests to fail. Let's use more reliable .constructor.name tests, instead.
@danmactough
Copy link
Contributor Author

Might this actually be a bug in the Node core VM module? Maybe.

@pvorb
Copy link
Owner

pvorb commented Nov 21, 2012

Thank you for the hint.

I haven't used the VM module yet, so I don't know if it's a bug in the VM module. There's an interesting thread on this issue nodejs/node-v0.x-archive#1277.

@danmactough
Copy link
Contributor Author

Good cross-reference.

@pvorb
Copy link
Owner

pvorb commented Nov 21, 2012

I think I'll have a closer look on this during the weekend.

@pvorb
Copy link
Owner

pvorb commented Nov 25, 2012

I had the time to have a look on it. All your changes look very good and I'll merge now. Thanks a lot for your effort.

pvorb added a commit that referenced this pull request Nov 25, 2012
Fix for obscure bug when running in VM
@pvorb pvorb merged commit e9907c4 into pvorb:master Nov 25, 2012
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