diff options
Diffstat (limited to 'cli/tests/testdata/run')
13 files changed, 40 insertions, 30 deletions
diff --git a/cli/tests/testdata/run/042_dyn_import_evalcontext.ts.out b/cli/tests/testdata/run/042_dyn_import_evalcontext.ts.out index 12a45b8da..89e16b478 100644 --- a/cli/tests/testdata/run/042_dyn_import_evalcontext.ts.out +++ b/cli/tests/testdata/run/042_dyn_import_evalcontext.ts.out @@ -1 +1 @@ -Module { isMod4: true } +[Module: null prototype] { isMod4: true } diff --git a/cli/tests/testdata/run/070_location.ts.out b/cli/tests/testdata/run/070_location.ts.out index 8b2f9e49d..6827a555d 100644 --- a/cli/tests/testdata/run/070_location.ts.out +++ b/cli/tests/testdata/run/070_location.ts.out @@ -1,5 +1,5 @@ -[WILDCARD][Class: Location] -Location {} +[WILDCARD][class Location] +Object [Location] {} Location { hash: "#bat", host: "foo", diff --git a/cli/tests/testdata/run/071_location_unset.ts.out b/cli/tests/testdata/run/071_location_unset.ts.out index dc67c5578..cf4a9d605 100644 --- a/cli/tests/testdata/run/071_location_unset.ts.out +++ b/cli/tests/testdata/run/071_location_unset.ts.out @@ -1,5 +1,5 @@ -[WILDCARD][Class: Location] -Location {} +[WILDCARD][class Location] +Object [Location] {} undefined /bar [WILDCARD] diff --git a/cli/tests/testdata/run/error_014_catch_dynamic_import_error.js.out b/cli/tests/testdata/run/error_014_catch_dynamic_import_error.js.out index 701ddc3b5..868c97194 100644 --- a/cli/tests/testdata/run/error_014_catch_dynamic_import_error.js.out +++ b/cli/tests/testdata/run/error_014_catch_dynamic_import_error.js.out @@ -2,11 +2,15 @@ Caught direct dynamic import error. TypeError: Relative import path "does not exist" not prefixed with / or ./ or ../ at [WILDCARD]/error_014_catch_dynamic_import_error.js:3:18 - at async [WILDCARD]/error_014_catch_dynamic_import_error.js:3:5 + at [WILDCARD]/error_014_catch_dynamic_import_error.js:3:5 { + code: "ERR_MODULE_NOT_FOUND" +} Caught indirect direct dynamic import error. TypeError: Relative import path "does not exist either" not prefixed with / or ./ or ../ at [WILDCARD]/subdir/indirect_import_error.js:1:15 - at async [WILDCARD]/error_014_catch_dynamic_import_error.js:10:5 + at async [WILDCARD]/error_014_catch_dynamic_import_error.js:10:5 { + code: "ERR_MODULE_NOT_FOUND" +} Caught error thrown by dynamically imported module. Error: An error at [WILDCARD]/subdir/throws.js:6:7 diff --git a/cli/tests/testdata/run/error_with_errors_prop.js.out b/cli/tests/testdata/run/error_with_errors_prop.js.out index 3154e86e6..946b5ad84 100644 --- a/cli/tests/testdata/run/error_with_errors_prop.js.out +++ b/cli/tests/testdata/run/error_with_errors_prop.js.out @@ -2,7 +2,14 @@ Error: Error with errors prop. at [WILDCARD]/error_with_errors_prop.js:1:15 Error: Error with errors prop. - at [WILDCARD]/error_with_errors_prop.js:1:15 + at [WILDCARD]/error_with_errors_prop.js:1:15 { + errors: [ + Error: Error message 1. + at [WILDCARD]/error_with_errors_prop.js:3:3, + Error: Error message 2. + at [WILDCARD]/error_with_errors_prop.js:4:3 + ] +} error: Uncaught Error: Error with errors prop. const error = new Error("Error with errors prop."); diff --git a/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out b/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out index 39e164083..ac7f7c230 100644 --- a/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out +++ b/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out @@ -1 +1,5 @@ -{ thrown: DOMException: foo, isNativeError: true, isCompileError: false } +[Object: null prototype] { + thrown: DOMException: foo, + isNativeError: true, + isCompileError: false +} diff --git a/cli/tests/testdata/run/fetch_response_finalization.js.out b/cli/tests/testdata/run/fetch_response_finalization.js.out index 844a4e4b2..1a8d7563d 100644 --- a/cli/tests/testdata/run/fetch_response_finalization.js.out +++ b/cli/tests/testdata/run/fetch_response_finalization.js.out @@ -1,2 +1,7 @@ -{ "0": "stdin", "1": "stdout", "2": "stderr", "5": "fetchResponseBody" } +{ + "0": "stdin", + "1": "stdout", + "2": "stderr", + "5": "fetchResponseBody" +} { "0": "stdin", "1": "stdout", "2": "stderr" } diff --git a/cli/tests/testdata/run/fix_js_imports.ts.out b/cli/tests/testdata/run/fix_js_imports.ts.out index 5e45122de..c427932a4 100644 --- a/cli/tests/testdata/run/fix_js_imports.ts.out +++ b/cli/tests/testdata/run/fix_js_imports.ts.out @@ -1 +1 @@ -Module {} +[Module: null prototype] { } diff --git a/cli/tests/testdata/run/node_builtin_modules/mod.js.out b/cli/tests/testdata/run/node_builtin_modules/mod.js.out index 0d96b31ab..844e3d927 100644 --- a/cli/tests/testdata/run/node_builtin_modules/mod.js.out +++ b/cli/tests/testdata/run/node_builtin_modules/mod.js.out @@ -1,8 +1,3 @@ [Function: createRequire] v[WILDCARD].[WILDCARD].[WILDCARD] -[ - "[WILDCARD]", - "[WILDCARD]mod.js", - "hello", - "there" -] +[ [Getter], [Getter], "hello", "there" ] diff --git a/cli/tests/testdata/run/node_builtin_modules/mod.ts.out b/cli/tests/testdata/run/node_builtin_modules/mod.ts.out index f19bd81e6..844e3d927 100644 --- a/cli/tests/testdata/run/node_builtin_modules/mod.ts.out +++ b/cli/tests/testdata/run/node_builtin_modules/mod.ts.out @@ -1,8 +1,3 @@ [Function: createRequire] v[WILDCARD].[WILDCARD].[WILDCARD] -[ - "[WILDCARD]", - "[WILDCARD]mod.ts", - "hello", - "there" -] +[ [Getter], [Getter], "hello", "there" ] diff --git a/cli/tests/testdata/run/top_level_await/loop.out b/cli/tests/testdata/run/top_level_await/loop.out index 7f72048c2..1bdffbf66 100644 --- a/cli/tests/testdata/run/top_level_await/loop.out +++ b/cli/tests/testdata/run/top_level_await/loop.out @@ -1,5 +1,5 @@ loading [WILDCARD]a.js -loaded Module { default: [Class: Foo] } +loaded [Module: null prototype] { default: [class Foo] } loading [WILDCARD]b.js -loaded Module { default: [Class: Bar] } +loaded [Module: null prototype] { default: [class Bar] } all loaded diff --git a/cli/tests/testdata/run/ts_decorators.ts.out b/cli/tests/testdata/run/ts_decorators.ts.out index 381c7a809..ee77417cf 100644 --- a/cli/tests/testdata/run/ts_decorators.ts.out +++ b/cli/tests/testdata/run/ts_decorators.ts.out @@ -1,2 +1,2 @@ Check [WILDCARD] -{ someField: "asdf" } +SomeClass { someField: "asdf" } diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/main.out b/cli/tests/testdata/run/with_package_json/no_deno_json/main.out index 45bcbb819..b3af7331d 100644 --- a/cli/tests/testdata/run/with_package_json/no_deno_json/main.out +++ b/cli/tests/testdata/run/with_package_json/no_deno_json/main.out @@ -1,13 +1,13 @@ [WILDCARD]package.json file found at '[WILDCARD]with_package_json[WILDCARD]package.json' [WILDCARD] ok -[Chalk (anonymous)] { +[Function (anonymous)] Chalk { constructor: [Function (anonymous)], - Instance: [Class: ChalkClass], + Instance: [class ChalkClass], supportsColor: false, - stderr: [Chalk (anonymous)] { + stderr: [Function (anonymous)] Chalk { constructor: [Function (anonymous)], - Instance: [Class: ChalkClass], + Instance: [class ChalkClass], supportsColor: false } } |