blob: 604ace3ced71702ddf6fa188ea60aec39de4bde0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
load("test-common.js");
function foo(a) {
return a;
}
try {
var x = undefined;
assert(x === undefined);
assert(foo(x) === undefined);
var o = {};
o.x = x;
assert(o.x === undefined);
assert(o.x === x);
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}
|