Erik Arvidsson
Erik Arvidsson
These can be directly invoked from JS now
All the way to the RPC barrier, at which point we turn the Vec to a String.
All our logging in rust ends up calling `console.log`. It would be much better if: `info!` called `console.info` `debug!` called `console.debug` `error!` called `console.error`
We should put the LogLevel on the LogContext and scope store that in the connection so that two different instances of Replicache can use different log level.
`performance.now()` gives the time since start of the webpage in ms and fractions. We round this in rust to ms so we might as well use `Date.now()`... Or change `Timer`...
For `scan` we read an `Uint8Array` out of IDB. We copy this to a Rust `Vec` and then we copy that same `Vec` into a JS `Uint8Array` again before calling...
This warning is extremely spammy (gets called thousands of times) https://github.com/rocicorp/repc/blob/d02aedd3f42b83e51b35f300b19405519eb08ece/src/embed/connection.rs#L129 I had to disable it in perf tests because it slowed things down and I disabled it in tests...
In "1.3.1 EnsureEvaluated(mod, seen, loader) Abstract Operation", 1. If mod.[[Body]] is not undefined and mod.[[Evaluated]] is false, modules do not have an internal slot called [[Evaluated]]
Step 11.c.i can use SimpleDefine.
1. Let p be the result of LoadModule(loader, name, options). name is undefined. Maybe rename the request param to name?