Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Do some naive JS executions</title>
<script>
function run() {
}
run(42);
run(document.createElement("div"));
// More properties than JS::ValueSummary::MAX_COLLECTION_VALUES, so that
// the recorded shape gets truncated. See bug 1995443.
const manyProperties = {};
for (let i = 0; i < 20; i++) {
manyProperties["prop" + i] = i;
}
run(manyProperties);
</script>
</head>
<body testAttr="foo">
</body>
</html>