mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
Update js.ts
This commit is contained in:
parent
47b59945a9
commit
738198f954
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ export function rewriteJs(js: string, origin?: URL) {
|
|||
// js rweriting notrdone
|
||||
MemberExpression: (node: ESTree.MemberExpression) => {
|
||||
if (node.object.type === "Identifier" && identifierList.includes(node.object.name)) {
|
||||
node.object.name = `__s${node.object.name}`;
|
||||
node.object.name = `__s(${node.object.name})`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -76,4 +76,4 @@ export function rewriteJs(js: string, origin?: URL) {
|
|||
|
||||
return js;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue