Lach
Lach
Note: Current version of this branch lacks one major optimisation, making it slower than current version on master
There is also https://doc.rust-lang.org/stable/std/string/struct.String.html#method.from_utf8_lossy suitable for that. I wonder if signature of decodeUTF8 should be updated to `decodeUTF8(string, lossy = true)`, I don't like implicit lossy conversions...
> BigInt can now be compared with regular numbers. > BigInt can now be added to regular numbers. > BigInt can now be subtracted from regular numbers. This was done...
You can wrap `js_sys::Function` in newtype wrapper and implement `NativeCallbackHandler` for it. ```rust struct JsCallback(js_sys::Function); impl NativeCallbackHandler for JsCallback { ... } std_opts.add_native(NativeCallback::new( vec!["param1".to_owned(), "param2".to_owned()], JsCallback(js_function) )) ```
The `[k, v]` syntax is not something special made for object comprehension, this is a object deconstruction syntax, which is available in other contexts, i.e ```jsonnet local [a, b] =...
Full assert syntax is: `assert condition [ : message ] ; value` If message not specified (`assert condition ; value`) - it equals to null, this behavior is consistent with...
> Should App provide a websocket command to define a websocket route and use vite as a middleware? You don't need to do that with requests being Deno requests, which...
> This would mean that just the dev_server would not be part of the plugin anymorer, but rather be implemented as a middleware for fresh? Exactly. It is not quite...
Note that this change is potentially breaking, but I don't think the code that might be broken by it was processed correctly in the first place, in case of existing...
On second thought, isn't the correct rewrite here is just ```typescript let _default; if ('default' in exports) { _default = exports.default; } else { _default = module.exports; } ``` There...