mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
misinformation
This commit is contained in:
parent
613af1680e
commit
4f08948e98
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue