diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-20 14:15:02 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-20 14:15:02 -0700 |
commit | 711c7438cc1196845b51450a0c13ec9fbcea058f (patch) | |
tree | fb5cc983a50869cdcb195488a169e24594ff0c19 | |
parent | 83c6675368ce14ee34b52147792b1073a074ed24 (diff) |
proper exception throwing when sync xhrs are attempted to be used in the browser
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 798a6f58..1c150bc9 100644 --- a/src/library.js +++ b/src/library.js @@ -359,7 +359,7 @@ LibraryManager.library = { var success = true; if (typeof XMLHttpRequest !== 'undefined') { // Browser. - assert('Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc'); + throw 'Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc'; } else if (Module['read']) { // Command-line. try { |