jalangi2
jalangi2 copied to clipboard
instrumentation of html files containing onclick="return false;" throws SyntaxError exception
src/js/commands/instrument.js on an html file containing the following tag < a href="//slashdot.org/my/login" onclick="show_login_box(); return false;"> throws SyntaxError exception.
can't reproduce. have a full html file?
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="#" onclick="return false;">Hello</a>
</body>
</html>
If you run the following on this file, you will see a SyntaxError exception.
node src/js/commands/esnstrument_cli.js --inlineIID --inlineSource tests/unit/returnFalse.html