misinformation

This commit is contained in:
velzie 2024-07-20 18:40:12 -04:00
parent 613af1680e
commit 4f08948e98
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -39,8 +39,7 @@ export function rewriteJs(js: string | ArrayBuffer, origin?: URL) {
// 1. does not work with modules // 1. does not work with modules
// 2. cannot proxy import() // 2. cannot proxy import()
// 3. disables "use strict" optimizations // 3. disables "use strict" optimizations
// 4. `location = ...` will fail // 4. i think the global state can get clobbered somehow
// 5. i think the global state can get clobbered somehow
// //
// if you can ensure all the preconditions are met this is faster than full rewrites // if you can ensure all the preconditions are met this is faster than full rewrites
export function rewriteJsNaiive(js: string | ArrayBuffer, origin?: URL) { export function rewriteJsNaiive(js: string | ArrayBuffer, origin?: URL) {