Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling INSTR_TRY_CATCH_ARGUMENTS throws IllegalStateException #36

Open
magnus-madsen opened this issue Apr 21, 2015 · 1 comment
Open

Comments

@magnus-madsen
Copy link

Steps to reproduce:

  1. Clean Jalangi2 install.
  2. Edit Config.js to enable INSTR_TRY_CATCH_ARGUMENTS and always return false.
  3. Run node jalangi2/src/js/commands/instrument.js --outputDir foo jalangi2/tests/octane/box2d.js

/Users/m.madsen/tmp/jalangi2/src/js/commands/instrument.js:322
throw e;
^
Error: IllegalStateException
at getFnIdFromAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/esnstrument.js:531:19)
at wrapLiteral (/Users/m.madsen/tmp/jalangi2/src/js/instrument/esnstrument.js:554:37)
at Object.visitorRRPost.FunctionExpression (/Users/m.madsen/tmp/jalangi2/src/js/instrument/esnstrument.js:1386:24)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:148:36)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:141:39)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:141:39)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:141:39)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:141:39)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:141:39)
at transformAst (/Users/m.madsen/tmp/jalangi2/src/js/instrument/astUtil.js:141:39)

@ksen007
Copy link
Contributor

ksen007 commented Apr 23, 2015

This is an untested feature and I am not sure how this can be implemented correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants