-
-
Save tomyan/349076 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require.async('./b', function () {}); | |
| require.async('./c', function () {}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var sys = require('sys'); | |
| var c = require('./c'); | |
| sys.debug(sys.inspect(c)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.c = 'c'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You have two modules, one of which synchronously requires the other. You then | |
| # asynchronously load both modules. The result is that the object returned from | |
| # the sync require does not have the data set up by the second module. | |
| # Run the test with: | |
| node a.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment