mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
rewrite
This commit is contained in:
parent
00de00e7ca
commit
cb2ab0cedd
36 changed files with 1825 additions and 1355 deletions
27
rewriter/native/test.js
Normal file
27
rewriter/native/test.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
window.location.href = "http://example.com";
|
||||
|
||||
console.log(top.window.aaa);
|
||||
consle.log(globalThis["win" + "dow"]);
|
||||
|
||||
globalThis.eval("..");
|
||||
|
||||
let ref = { b: this.top.window, c: globalThis["win" + "dow"] };
|
||||
|
||||
|
||||
export default ref;
|
||||
|
||||
export { ref };
|
||||
|
||||
|
||||
export { ref as default };
|
||||
|
||||
export { S } from "module";
|
||||
export * from "module";
|
||||
import sd from "d"
|
||||
|
||||
location += "http://example.com";
|
||||
|
||||
function f() { return import("x") }
|
||||
|
||||
|
||||
let window = (1, window);
|
Loading…
Add table
Add a link
Reference in a new issue