~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// |jit-test| debug
 
2
function main() {
 
3
  try {
 
4
    throw "something";
 
5
  } catch(e) {
 
6
    return "failure";
 
7
  }
 
8
  return "unset";
 
9
}
 
10
 
 
11
setDebug(true);
 
12
setThrowHook("'success'");
 
13
 
 
14
assertEq(main(), "success");