diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-20 20:13:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-20 20:13:25 -0700 |
commit | c5c45bafedd945ac7c6be9632e5ea4aa583a1915 (patch) | |
tree | 8c7d0211df42728336a44525c979c46d52063129 /src/utility.js | |
parent | aee53a0899d31926113d23536d1277c5d96e8fd0 (diff) |
abort compilation if there are unresolved in asm.js, after showing them all
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js index 19444675..b67e6c21 100644 --- a/src/utility.js +++ b/src/utility.js @@ -85,6 +85,13 @@ function warnOnce(a, msg) { } } +var abortExecution = false; + +function error(msg) { + abortExecution = true; + printErr('Error: ' + msg); +} + function dedup(items, ident) { var seen = {}; if (ident) { |