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

circular references cause unexpected behavior in a few rare cases #13

Open
mgh opened this issue Sep 25, 2010 · 1 comment
Open

circular references cause unexpected behavior in a few rare cases #13

mgh opened this issue Sep 25, 2010 · 1 comment

Comments

@mgh
Copy link
Contributor

mgh commented Sep 25, 2010

circular references can't resolve correctly if exports is overwritten:

in module A:

exports = foo

then later in module A:

doSomeFunction()

that results in an import of module A.

expected: module A is partially defined with foo
actual: jsio doesn't pull the new exports out of the module until after the import returns, so we don't have access to foo.

@souparno
Copy link

souparno commented Dec 2, 2018

https://github.com/souparno/jsio.js/tree/master/example2
^ circular dependency with jsio

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

No branches or pull requests

2 participants