summaryrefslogtreecommitdiff
path: root/src/tools/js-wrapper.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-02-19 10:14:59 -0800
committerGitHub <noreply@github.com>2019-02-19 10:14:59 -0800
commit3564b71c25d7691267f5f7d8b95f10fd5929090a (patch)
treeca81e10e93bc10b8ade61f96ff642152540f9e8f /src/tools/js-wrapper.h
parent8b820ed0021ab1a6ad5dad3972cfbf2cecb77e45 (diff)
downloadbinaryen-3564b71c25d7691267f5f7d8b95f10fd5929090a.tar.gz
binaryen-3564b71c25d7691267f5f7d8b95f10fd5929090a.tar.bz2
binaryen-3564b71c25d7691267f5f7d8b95f10fd5929090a.zip
NaN fuzzing improvements (#1913)
* make DE_NAN avoid creating nan literals in the first place * add a reducer option `--denan` to not introduce nans in destructive reduction * add a `Literal::isNaN()` method * also remove the default exception logging from the fuzzer js glue, which is a source of non-useful VM differences (like nan nondeterminism) * added an option `--no-fuzz-nans` to make it easy to avoid nans when fuzzing (without hacking the source and recompiling). Background: trying to get fuzzing on jsc working despite this open issue: https://bugs.webkit.org/show_bug.cgi?id=175691
Diffstat (limited to 'src/tools/js-wrapper.h')
-rw-r--r--src/tools/js-wrapper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/js-wrapper.h b/src/tools/js-wrapper.h
index 765a638c5..433d6fc5a 100644
--- a/src/tools/js-wrapper.h
+++ b/src/tools/js-wrapper.h
@@ -103,7 +103,7 @@ static std::string generateJSWrapper(Module& wasm) {
}
ret += ";\n";
ret += "} catch (e) {\n";
- ret += " console.log('exception: ' + e);\n";
+ ret += " console.log('exception!' /* + e */);\n";
ret += "}\n";
}
return ret;