New issue
Advanced search Search tips

Issue 972 attachment: intldel.html (542 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
32
33
34
<html><body><script>

var d = Object.defineProperty;

var noobj = {
get: function () {
print("in get no");
return 0x1234567 >> 1;
},
set: function () {
print("in set no");
}
};

function f(...a){
var i = Intl;
Intl = {};
d(i, "Collator", noobj);

}

var pattern = {
get: function () {
return f;
},
set: function () {
}
};

Object.defineProperty(Object, "defineProperty", pattern);

var q = new Intl.NumberFormat(["en"]);

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