about summary refs log blame commit diff stats
path: root/test/js/date.html
blob: 86a2818b05fe50e707338f4f50854169b5f683a3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                     
<!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>