Sam Clegg

Results 1123 comments of Sam Clegg

So it sounds like maybe MDN is just wrong on this a not up-to-date with the spec, since it only mentions the same-origin requirement for sub-workers.

Spec: https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-classic-worker-script

Can you share the full fix you came up with here?

Does that work? Looking at the code it seems that `_scriptName` is set only after the `--pre-js` code is included.

(We could potentially move the `_scriptName` assignment earlier).

> Wait, I thought the _scriptName is declared before the iife is returned to be used in the function? I think MODULARIZE mode differs in this respect and injects `_scriptName`...

I'd like to better understand the problem, and decide if we should do this default or make it a new option. I also wonder if there is any downside to...

@msqr1 I'm curious, are there some CDNs (e.g couldflare and fastly type things) that don't require you to do cross-origin stuff? i.e. they take over your whole domain, so to...

O, that sounds like a nasty issue. Do you have any idea what the error are? Are they related to memory layout? Or static data? Miscompilation? What kind of errors...

Do you mean that changing just the name of the library changes the behaviour? And when you say "building successfully" I assume you mean that that program runs successfully? Or...