diff options
Diffstat (limited to 'tests/testdata/run/import_blob_url_error_stack.ts')
-rw-r--r-- | tests/testdata/run/import_blob_url_error_stack.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/testdata/run/import_blob_url_error_stack.ts b/tests/testdata/run/import_blob_url_error_stack.ts new file mode 100644 index 000000000..f9c4f2e9d --- /dev/null +++ b/tests/testdata/run/import_blob_url_error_stack.ts @@ -0,0 +1,13 @@ +const blob = new Blob( + [ + "enum A {\n A,\n B,\n C,\n }\n \n export function a() {\n throw new Error(`Hello ${A.C}`);\n }\n ", + ], + { + type: "application/typescript", + }, +); +const url = URL.createObjectURL(blob); + +const { a } = await import(url); + +a(); |