blob: 86a2818b05fe50e707338f4f50854169b5f683a3 (
plain) (
tree)
|
|
<!doctype html>
<!--
Test for whether the Date constructor works at all.
QuickJS uses some syscalls and library calls for this, and sandboxing
sometimes isn't very cooperative in this regard.
-->
<title>Date constructor test</title>
<div id=x>Fail</div>
<script>
(function() {
new Date();
document.getElementById("x").textContent = "Success";
})();
</script>
|