Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

(require.main != module) in v3.7.0 #619

Closed
dominictarr opened this issue Feb 2, 2011 · 3 comments
Closed

(require.main != module) in v3.7.0 #619

dominictarr opened this issue Feb 2, 2011 · 3 comments

Comments

@dominictarr
Copy link

something is wrong with require.main and it is never equal to a module

thought this was the standard way to check if you where in the main module... so now lots of code is broken in 0.3.7

here is a gist of some output etc:

https://gist.github.com/807491

thanks.

@isaacs
Copy link

isaacs commented Feb 2, 2011

Ah, whoops. Yep. Good catch.

Fix: https://gist.github.com/808083

@isaacs
Copy link

isaacs commented Feb 2, 2011

Closed by f86ec13 Make require.main be the main module

@dominictarr
Copy link
Author

wow! so fast! you work while I sleep, I love it!

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants