blob: d3dcda08655717110c1438f61a6ada0f6b8f5c23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
load(libdir + "asserts.js");
function f1(a=g()) {
function g() {
}
}
assertThrowsInstanceOf(f1, ReferenceError);
function f2(a=g()) {
function g() {
return 43;
}
assertEq(a, 42);
}
f2(42);
|