diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-07 11:53:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-07 11:53:19 -0800 |
commit | 904d9b751241bfa1e1a334877c8489a27e535892 (patch) | |
tree | 148ca1adb44baf0ee431f57b7db3382e3a821218 | |
parent | cdbb625213020804fee0526c50b51b83f45588fc (diff) |
disable EXCEPTION_DEBUG by default
-rw-r--r-- | src/settings.js | 2 | ||||
-rwxr-xr-x | tests/runner.py | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/settings.js b/src/settings.js index 42267428..84d64167 100644 --- a/src/settings.js +++ b/src/settings.js @@ -138,7 +138,7 @@ var LABEL_FUNCTION_FILTERS = []; // Filters for function label debug. // labels of functions that is equaled to // one of the filters are printed out // When the array is empty, the filter is disabled. -var EXCEPTION_DEBUG = 1; // Print out exceptions in emscriptened code +var EXCEPTION_DEBUG = 0; // Print out exceptions in emscriptened code var LIBRARY_DEBUG = 0; // Print out when we enter a library call (library*.js). You can also unset // Runtime.debug at runtime for logging to cease, and can set it when you diff --git a/tests/runner.py b/tests/runner.py index 2ba1ede1..e55a3f60 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -2366,7 +2366,6 @@ Exception execution path of first function! 1 if '-O2' in self.emcc_args: self.emcc_args += ['--closure', '1'] # Use closure here for some additional coverage - Settings.EXCEPTION_DEBUG = 0 # Messes up expected output. Settings.DISABLE_EXCEPTION_CATCHING = 0 src = r''' @@ -2406,14 +2405,12 @@ Exception execution path of first function! 1 def test_typed_exceptions(self): Settings.DISABLE_EXCEPTION_CATCHING = 0 Settings.SAFE_HEAP = 0 # Throwing null will cause an ignorable null pointer access. - Settings.EXCEPTION_DEBUG = 0 # Messes up expected output. src = open(path_from_root('tests', 'exceptions', 'typed.cpp'), 'r').read() expected = open(path_from_root('tests', 'exceptions', 'output.txt'), 'r').read() self.do_run(src, expected) def test_multiexception(self): Settings.DISABLE_EXCEPTION_CATCHING = 0 - Settings.EXCEPTION_DEBUG = 0 # Messes up expected output. src = r''' #include <stdio.h> |