Results 574 comments of Mark S. Miller

Kris? On Thu, Aug 14, 2025 at 8:55 PM Shane F. Carr ***@***.***> wrote: > *sffc* left a comment (tc39/ecma402#1022) > > > @erights It was suggested that we bring...

See https://github.com/endojs/endo/issues/1798

How about as a `sourceURL` option in a options bag as the second argument to `evaluate` ```js compartment.evaluate(src, { sourceURL: 'file:stuff' }); ``` Attn @kriskowal @dckc

We currently depend on the 8 magic lines proxy for two features that we can't emulate using `compartment.evaluate`: * So-called "sloppy globals" where strict a top level assignment to an...

For the "sloppy globals" issue, we could painlessly add a dirt simple translator to our repl, replacing a first line matching ```js /^(\s*)(\w*\s*=)/ ``` with ```js `${m[1]}globalThis.${m[2])` ```

If the price of moving to `compartment.evaluate` is to give up live bindings, that price is easily worth paying. Alternatively, iff a translated compartment says it exports a live binding,...

Noting that there is yet another bug under 8 magic lines that would be fixed by moving to `compartment.evaluate` `ReferenceError` vs `typeof`. Using only the 8 magic lines, it is...

See also https://github.com/Agoric/agoric-sdk/issues/2480 which is dup-ish, but we're keeping both open for now.

@kriskowal @mhofman , has this been completed? Can we close this and https://github.com/Agoric/agoric-sdk/issues/2480 now?