mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
34 lines
859 B
HTML
34 lines
859 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'/>
|
|
<title>Debugger Function Call Parameter Test</title>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
<script type="text/javascript">
|
|
window.addEventListener("load", function() {
|
|
function test(aNumber) {
|
|
var a, obj = { one: 1, two: 2 };
|
|
var r = aNumber;
|
|
with (Math) {
|
|
a = PI * r * r;
|
|
with (obj) {
|
|
var foo = two * PI;
|
|
debugger;
|
|
}
|
|
}
|
|
};
|
|
function load() {
|
|
test(10);
|
|
}
|
|
var button = document.querySelector("button");
|
|
button.addEventListener("click", load, false);
|
|
});
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<button>Click me!</button>
|
|
</body>
|
|
</html>
|