gecko/browser/devtools/debugger/test/browser_dbg_big-data.html

28 lines
726 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'/>
<title>Debugger Big Data 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 buffer = new ArrayBuffer(aNumber);
var z = new Int8Array(buffer);
debugger;
};
function load() {
test(10000);
}
var button = document.querySelector("button");
button.addEventListener("click", load, false);
});
</script>
</head>
<body>
<button>Click me!</button>
</body>
</html>