blob: 64b4ee2faefb6e13e475a1ebf82fa49f41bf6c72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// META: global=worker
test(function() {
assert_equals(self, self);
}, 'self === self');
test(function() {
assert_true(self instanceof WorkerGlobalScope);
}, 'self instanceof WorkerGlobalScope');
test(function() {
assert_true('self' in self);
}, '\'self\' in self');
test(function() {
var x = self;
self = 1;
assert_equals(self, x);
}, 'self = 1');
|