INNER CODE UNIT · JavaScript

sleep

xonotic/darkplaces · wasm/standaloneprejs.js:4

const sleep = ms => new Promise(r => setTimeout(r, ms));

Module['print'] = function(text) { console.log(text); }

Module['preRun'] = function()
{
	function stdin() { return 10 };
	var stdout = null;
	var stderr = null;
	FS.init(stdin, stdout, stderr);
	FS.mount(IDBFS, {}, "/home/web_user/");
	FS.symlink("/home/web_user", "/save");
}

Module['noInitialRun'] = true

document.addEventListener('click', (ev) => {
	console.log("event is captured only once.");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…