mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
parent
a4383984d1
commit
ad77215052
1 changed files with 6 additions and 0 deletions
|
@ -290,3 +290,9 @@ export async function runTests() {
|
|||
}, 0);
|
||||
}
|
||||
}
|
||||
|
||||
export async function runIfMain(meta: ImportMeta) {
|
||||
if (window.location.toString() === meta.url) {
|
||||
runTests();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue