Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / function-argument-evaluation-before-exception.html
blob7a29895a314a00db6e78820478d83b2495c8b4b8
1 <p>This page verifies that the arguments to a function call are evaluated even
2 if the call throws a "not a function" exception.
3 </p>
4 <pre id="console">FAIL: arguments were not evaluated.</pre>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 window.__defineGetter__("x", function() { document.getElementById("console").innerHTML = "PASS: arguments were evaluated"; });
12 try {
13 var f = undefined;
14 f(x);
15 } catch(e) {
17 </script>