kai zhu

Results 65 comments of kai zhu

cookies/localStorage are [externally-stateful] datastores that javascript [statelessly] message-pass between. the same goes for caches. they are external datastores (like sqlite/sql.js/redis) that javascript statelessly pass messages between.

they are EXTERNAL datastores and dom-element-ui's. the javascript program you and i write requires almost no stateful-code in order to interact with them.

- unlikely to be on radar soon. - `sqlite3_interrupt()` requires opening a secondary database-connection in a secondary thread to interrupt the first thread - web-workers are single-threaded -- there's no...

- warning against single-letter-variable-name sounds like a good idea, and will add when time allows. - original issue of detecting renamed-variable is nice-to-have: - have no objection, except high qa-cost...

- bisected regression to https://github.com/jslint-org/jslint/commit/eee020d41b749706491248a5e7184d1fe26b3926#diff-4822639e8179a5188bdfd8cfb48d9e103a7dcc1f2b1036465ab7017d4166c2a8R3246 ```diff @@ -3220,7 +3241,9 @@ function do_var() { } enroll(name, "variable", is_const); if (next_token.id === "=" || is_const) { + implied_strict = true; advance("="); +...

- @jamesdiacono can you submit a patch to `beta` branch and take credit for work already done? - here's a starting point to apply to current `jslint.mjs` (admittedly, i don't...

- the following patch would add test-cases for const - EDIT: sorry for lack of documentation, but but here's general signature: ```js // test_cause: [ "", "", "", "", ]...

fs.rmdirSync is easier and less hassle (there's no reason it needs to be async in the [blocking] cli use-case). the same goes for the test-cases ```js fs.rmdirSync(argv.tempDirectory, { recursive: true...

+1 it would allow sqlite to easily extend regexp-replace in webassembly (https://github.com/sqlite/sqlite/blob/master/ext/icu/icu.c)

> for example a microcontroller that suddenly needs to support this spec cause every second package needs some std: stuff and also has to provide the storage for the stdlib...