diff options
Diffstat (limited to 'tests/if_main.ts')
-rw-r--r-- | tests/if_main.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/if_main.ts b/tests/if_main.ts new file mode 100644 index 000000000..b47066b2d --- /dev/null +++ b/tests/if_main.ts @@ -0,0 +1,7 @@ +if (window.location.toString() == import.meta.url) { + console.log("main"); +} else { + console.log("import.meta.url", import.meta.url); + console.log("window.location", window.location.toString()); + throw Error("not main"); +} |