Saúl Ibarra Corretgé
Saúl Ibarra Corretgé
I don't think we want to make this change, sorry. Generally speaking buttons to add items to a list tend to be at the bottom of the list.
I see what you mean. Do you know how UIs like Material Design with the + sign to add things handle this?
Fun fact! There should be color support in there already, since we took the inspect util from Node: https://github.com/saghul/txiki.js/blob/84267a1612e47ec655fdf2b4afa1ff826d6b08b1/src/js/polyfills/console-util.js#L116 It's just not enabled by default.
Agreed. Note that the above is the REPL, which doesn't use console.log for its output, even though they both end up sending their output to `tjs.stdout`.
This would break the current workflow of `make prepare` creating `latest` images for testing.
The release.sh script would be broken.
As a stopgap we have accepted PRs modifying the language files directly. Not ideal, though.
FWIW: https://github.com/quickjs-ng/quickjs/pull/58 https://github.com/quickjs-ng/quickjs/pull/148 https://github.com/quickjs-ng/quickjs/pull/168
I have not reviewed it, I was just pointing out that there is prior art. We do have the intention to merge both projects but at this stage I wouldn't...
IIRC the Buffer class extends Uint8Array. Anyway. I think you can get the prototype with JS_GetPrototype and then add your custom methods.