blob: 34a2be51fc4798e2a0cf0ec572656435a09ba8f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
var results = [];
try {
self.onconnect = 1;
results.push(String(onconnect));
} catch(e) {
results.push(''+e);
}
try {
self.onconnect = {handleEvent:function(){}};
results.push(String(onconnect));
} catch(e) {
results.push(''+e);
}
var f = function(e) {
results.push(e.data);
e.ports[0].postMessage(results);
};
onconnect = f;
results.push(typeof onconnect);
|