PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug563000/test-throwhook-2.js

http://github.com/zpao/v8monkey
JavaScript | 14 lines | 11 code | 2 blank | 1 comment | 0 complexity | fde89ebe7aeb14d887702119372fc77b MD5 | raw file
 1// |jit-test| debug
 2function main() {
 3  try {
 4    throw "something";
 5  } catch(e) {
 6    return "failure";
 7  }
 8  return "unset";
 9}
10
11setDebug(true);
12setThrowHook("'success'");
13
14assertEq(main(), "success");