diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-05 16:59:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-05 16:59:42 -0700 |
commit | 7435dffd517feaae18af17533aeb4e83218e0bc1 (patch) | |
tree | 09e079d20c483956112dda0446d1e5ff4481d609 /src/postamble.js | |
parent | 74577f85173e2820658c3fa400da4c70c8138589 (diff) |
assert on callMain happening when no dependencies left
Diffstat (limited to 'src/postamble.js')
-rw-r--r-- | src/postamble.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/postamble.js b/src/postamble.js index 833590f2..4b3e831d 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -2,6 +2,8 @@ // === Auto-generated postamble setup entry stuff === Module.callMain = function callMain(args) { + assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)'); + args = args || []; ensureInitRuntime(); |