Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lastIndexOf (0.16 sec)

  1. misc/wasm/wasm_exec.js

    		globalThis.fs = {
    			constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
    			writeSync(fd, buf) {
    				outputBuf += decoder.decode(buf);
    				const nl = outputBuf.lastIndexOf("\n");
    				if (nl != -1) {
    					console.log(outputBuf.substring(0, nl));
    					outputBuf = outputBuf.substring(nl + 1);
    				}
    				return buf.length;
    			},
    			write(fd, buf, offset, length, position, callback) {
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
Back to top