18 lines
448 B
HTML
18 lines
448 B
HTML
<p>This page verifies that the arguments to a function call are evaluated even
|
|
if the call throws a "not a function" exception.
|
|
</p>
|
|
<pre id="console">FAIL: arguments were not evaluated.</pre>
|
|
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
window.__defineGetter__("x", function() { document.getElementById("console").innerHTML = "PASS: arguments were evaluated"; });
|
|
|
|
try {
|
|
var f = undefined;
|
|
f(x);
|
|
} catch(e) {
|
|
}
|
|
</script>
|