blob: 844aa5630830406c9208cda5d0569d697cbecaef (
plain) (
tree)
|
|
<!doctype html>
<div id=x>Fail</div>
<script src=asserts.js></script>
<script>
assert(!![].at);
assert_equals([1, 2, 3].at(-2), 2);
assert_equals([1, 2, 3].at(-4), undefined);
document.getElementById("x").textContent = "Success";
</script>
|