mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
31 lines
654 B
HTML
31 lines
654 B
HTML
|
<html>
|
||
|
<head>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script>
|
||
|
window.foo = {
|
||
|
a: 42,
|
||
|
b: 37 * 73,
|
||
|
ctor: function(name, value) {
|
||
|
this[name] = value;
|
||
|
},
|
||
|
fakector: function(name, value) {
|
||
|
window[name] = "oyez";
|
||
|
this[name] = value;
|
||
|
return window;
|
||
|
},
|
||
|
f: function(x) {
|
||
|
document.body.appendChild(document.createElement("div")).innerHTML =
|
||
|
"called f(" + x + ")";
|
||
|
return x + Math.PI;
|
||
|
},
|
||
|
pitch: function(ball) {
|
||
|
throw ball;
|
||
|
}
|
||
|
};
|
||
|
window.foo.self = window.foo;
|
||
|
</script>
|
||
|
oyez
|
||
|
</body>
|
||
|
</html>
|