From 729d445b6885f69dd2c6355f38707bd42851c791 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:21:48 -0700 Subject: change the directory structure --- integration/snippets/caught-require.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 integration/snippets/caught-require.js (limited to 'integration/snippets/caught-require.js') diff --git a/integration/snippets/caught-require.js b/integration/snippets/caught-require.js deleted file mode 100644 index 6111d2b10..000000000 --- a/integration/snippets/caught-require.js +++ /dev/null @@ -1,31 +0,0 @@ -// Since top-level await is Special, we run these checks in the top-level scope as well. -try { - require("this-package-should-not-exist"); -} catch (exception) {} - -try { - await import("this-package-should-not-exist"); -} catch (exception) {} - -import("this-package-should-not-exist").then( - () => {}, - () => {} -); - -export async function test() { - // none of these should error - try { - require("this-package-should-not-exist"); - } catch (exception) {} - - try { - await import("this-package-should-not-exist"); - } catch (exception) {} - - import("this-package-should-not-exist").then( - () => {}, - () => {} - ); - - return testDone(import.meta.url); -} -- cgit v1.2.3