blob: 4fb2a3248f0753eb2b7e52de105bdde45af525a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
load("test-common.js");
try {
assert(typeof this === "object");
assert(this === globalThis);
function Foo() {
this.x = 5;
assert(typeof this === "object");
assert(this.x === 5);
}
new Foo();
console.log("PASS");
} catch (err) {
console.log("FAIL: " + err);
}
|