diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-29 11:32:40 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-30 15:53:23 -0500 |
commit | 13582ff3f2478f2e2cafa3042fc6aa96ae5049c5 (patch) | |
tree | 02c7828b99b5e7dcb394aea7dd0e5f5b14779fbe /tests | |
parent | b9e368cb4c24a8fb52d151c2d80288642433156d (diff) |
libdeno: improve exception handling
Diffstat (limited to 'tests')
-rw-r--r-- | tests/async_error.ts.out | 2 | ||||
-rw-r--r-- | tests/error_004_missing_module.ts.out | 2 | ||||
-rw-r--r-- | tests/error_006_import_ext_failure.ts.out | 2 | ||||
-rw-r--r-- | tests/error_007_any.ts.out | 2 | ||||
-rw-r--r-- | tests/error_008_checkjs.js.out | 2 | ||||
-rw-r--r-- | tests/error_009_missing_js_module.js.out | 2 | ||||
-rw-r--r-- | tests/error_syntax.js.out | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/tests/async_error.ts.out b/tests/async_error.ts.out index a33abb4df..4a2b78f6c 100644 --- a/tests/async_error.ts.out +++ b/tests/async_error.ts.out @@ -4,6 +4,6 @@ world [WILDCARD]tests/async_error.ts:4:10 throw Error("error"); -Error: error +Uncaught Error: error at foo ([WILDCARD]tests/async_error.ts:4:9) at [WILDCARD]tests/async_error.ts:7:1 diff --git a/tests/error_004_missing_module.ts.out b/tests/error_004_missing_module.ts.out index cafc3c5ad..f2f4cd795 100644 --- a/tests/error_004_missing_module.ts.out +++ b/tests/error_004_missing_module.ts.out @@ -1,6 +1,6 @@ Compiling [WILDCARD]tests/error_004_missing_module.ts [WILDCARD] -NotFound: Cannot resolve module "bad-module.ts" from "[WILDCARD]/tests/error_004_missing_module.ts" +Uncaught NotFound: Cannot resolve module "bad-module.ts" from "[WILDCARD]/tests/error_004_missing_module.ts" at DenoError ([WILDCARD]/js/errors.ts:[WILDCARD]) at maybeError ([WILDCARD]/js/errors.ts:[WILDCARD]) at maybeThrowError ([WILDCARD]/js/errors.ts:[WILDCARD]) diff --git a/tests/error_006_import_ext_failure.ts.out b/tests/error_006_import_ext_failure.ts.out index 01cc23274..62c2998d6 100644 --- a/tests/error_006_import_ext_failure.ts.out +++ b/tests/error_006_import_ext_failure.ts.out @@ -1,6 +1,6 @@ Compiling [WILDCARD]tests/error_006_import_ext_failure.ts [WILDCARD] -NotFound: Cannot resolve module "./non-existent" from "[WILDCARD]/tests/error_006_import_ext_failure.ts" +Uncaught NotFound: Cannot resolve module "./non-existent" from "[WILDCARD]/tests/error_006_import_ext_failure.ts" at DenoError ([WILDCARD]/js/errors.ts:[WILDCARD]) at maybeError ([WILDCARD]/js/errors.ts:[WILDCARD]) at maybeThrowError ([WILDCARD]/js/errors.ts:[WILDCARD]) diff --git a/tests/error_007_any.ts.out b/tests/error_007_any.ts.out index 068b4b474..f577d6070 100644 --- a/tests/error_007_any.ts.out +++ b/tests/error_007_any.ts.out @@ -1 +1 @@ -[WILDCARD][object Object] +[WILDCARD]Uncaught #<Object> diff --git a/tests/error_008_checkjs.js.out b/tests/error_008_checkjs.js.out index eb56aad17..6d899f9d6 100644 --- a/tests/error_008_checkjs.js.out +++ b/tests/error_008_checkjs.js.out @@ -1,5 +1,5 @@ [WILDCARD]tests/error_008_checkjs.js:2:0 consol.log("hello world!"); -ReferenceError: consol is not defined +Uncaught ReferenceError: consol is not defined at [WILDCARD]tests/error_008_checkjs.js:2:1 diff --git a/tests/error_009_missing_js_module.js.out b/tests/error_009_missing_js_module.js.out index 1bcd9099e..e0d8cce2e 100644 --- a/tests/error_009_missing_js_module.js.out +++ b/tests/error_009_missing_js_module.js.out @@ -1 +1 @@ -NotFound: Cannot resolve module "./bad-module.js" from "[WILDCARD]/tests/error_009_missing_js_module.js" +Uncaught NotFound: Cannot resolve module "./bad-module.js" from "[WILDCARD]/tests/error_009_missing_js_module.js" diff --git a/tests/error_syntax.js.out b/tests/error_syntax.js.out index c7d229702..a106b95d8 100644 --- a/tests/error_syntax.js.out +++ b/tests/error_syntax.js.out @@ -1,4 +1,4 @@ [WILDCARD]tests/error_syntax.js:3:5 (the following is a syntax error ^^ ! ) -SyntaxError: Unexpected identifier +Uncaught SyntaxError: Unexpected identifier |