mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor: merge Deno & Node inspectors (#18691)
This commit is contained in:
parent
64e072e499
commit
9c8ebce3dc
30 changed files with 2779 additions and 3116 deletions
|
@ -1 +1 @@
|
|||
Module { a: 12 }
|
||||
[Module: null prototype] { a: 12 }
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
12
|
||||
12
|
||||
Module {}
|
||||
[Module: null prototype] { }
|
||||
|
|
2
cli/tests/testdata/eval/dyn_import_eval.out
vendored
2
cli/tests/testdata/eval/dyn_import_eval.out
vendored
|
@ -1,2 +1,2 @@
|
|||
[WILDCARD]
|
||||
Module { isMod4: true }
|
||||
[Module: null prototype] { isMod4: true }
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
[WILDCARD]
|
||||
Module { default: { a: "b", c: { d: 10 } } }
|
||||
[Module: null prototype] { default: { a: "b", c: { d: 10 } } }
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
{ func: [Function: func] }
|
||||
Module { default: { func: [Function: func] }, func: [Function: func] }
|
||||
[Module: null prototype] {
|
||||
default: { func: [Function: func] },
|
||||
func: [Function: func]
|
||||
}
|
||||
5
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
5
|
||||
5
|
||||
Module { default: 5 }
|
||||
[Module: null prototype] { default: 5 }
|
||||
|
|
|
@ -3,20 +3,20 @@ Node esm importing node cjs
|
|||
{
|
||||
default: [Function (anonymous)],
|
||||
named: [Function (anonymous)],
|
||||
MyClass: [Class: MyClass]
|
||||
MyClass: [class MyClass]
|
||||
}
|
||||
{ default: [Function (anonymous)], named: [Function (anonymous)] }
|
||||
Module {
|
||||
MyClass: [Class: MyClass],
|
||||
[Module: null prototype] {
|
||||
MyClass: [class MyClass],
|
||||
__esModule: true,
|
||||
default: {
|
||||
default: [Function (anonymous)],
|
||||
named: [Function (anonymous)],
|
||||
MyClass: [Class: MyClass]
|
||||
MyClass: [class MyClass]
|
||||
},
|
||||
named: [Function (anonymous)]
|
||||
}
|
||||
Module {
|
||||
[Module: null prototype] {
|
||||
__esModule: true,
|
||||
default: { default: [Function (anonymous)], named: [Function (anonymous)] },
|
||||
named: [Function (anonymous)]
|
||||
|
@ -28,15 +28,15 @@ Deno esm importing node cjs
|
|||
{
|
||||
default: [Function (anonymous)],
|
||||
named: [Function (anonymous)],
|
||||
MyClass: [Class: MyClass]
|
||||
MyClass: [class MyClass]
|
||||
}
|
||||
Module {
|
||||
MyClass: [Class: MyClass],
|
||||
[Module: null prototype] {
|
||||
MyClass: [class MyClass],
|
||||
__esModule: true,
|
||||
default: {
|
||||
default: [Function (anonymous)],
|
||||
named: [Function (anonymous)],
|
||||
MyClass: [Class: MyClass]
|
||||
MyClass: [class MyClass]
|
||||
},
|
||||
named: [Function (anonymous)]
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ Module {
|
|||
Deno esm importing node esm
|
||||
===========================
|
||||
[Function: default]
|
||||
Module { default: [Function: default] }
|
||||
[Module: null prototype] { default: [Function: default] }
|
||||
===========================
|
||||
1
|
||||
5
|
||||
|
|
|
@ -1 +1 @@
|
|||
[Class: Client]
|
||||
[class Client extends EventEmitter]
|
||||
|
|
|
@ -1 +1 @@
|
|||
Module { isMod4: true }
|
||||
[Module: null prototype] { isMod4: true }
|
||||
|
|
4
cli/tests/testdata/run/070_location.ts.out
vendored
4
cli/tests/testdata/run/070_location.ts.out
vendored
|
@ -1,5 +1,5 @@
|
|||
[WILDCARD][Class: Location]
|
||||
Location {}
|
||||
[WILDCARD][class Location]
|
||||
Object [Location] {}
|
||||
Location {
|
||||
hash: "#bat",
|
||||
host: "foo",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[WILDCARD][Class: Location]
|
||||
Location {}
|
||||
[WILDCARD][class Location]
|
||||
Object [Location] {}
|
||||
undefined
|
||||
/bar
|
||||
[WILDCARD]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.");
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
{ thrown: DOMException: foo, isNativeError: true, isCompileError: false }
|
||||
[Object: null prototype] {
|
||||
thrown: DOMException: foo,
|
||||
isNativeError: true,
|
||||
isCompileError: false
|
||||
}
|
||||
|
|
|
@ -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" }
|
||||
|
|
2
cli/tests/testdata/run/fix_js_imports.ts.out
vendored
2
cli/tests/testdata/run/fix_js_imports.ts.out
vendored
|
@ -1 +1 @@
|
|||
Module {}
|
||||
[Module: null prototype] { }
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
[Function: createRequire]
|
||||
v[WILDCARD].[WILDCARD].[WILDCARD]
|
||||
[
|
||||
"[WILDCARD]",
|
||||
"[WILDCARD]mod.js",
|
||||
"hello",
|
||||
"there"
|
||||
]
|
||||
[ [Getter], [Getter], "hello", "there" ]
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
[Function: createRequire]
|
||||
v[WILDCARD].[WILDCARD].[WILDCARD]
|
||||
[
|
||||
"[WILDCARD]",
|
||||
"[WILDCARD]mod.ts",
|
||||
"hello",
|
||||
"there"
|
||||
]
|
||||
[ [Getter], [Getter], "hello", "there" ]
|
||||
|
|
|
@ -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
|
||||
|
|
2
cli/tests/testdata/run/ts_decorators.ts.out
vendored
2
cli/tests/testdata/run/ts_decorators.ts.out
vendored
|
@ -1,2 +1,2 @@
|
|||
Check [WILDCARD]
|
||||
{ someField: "asdf" }
|
||||
SomeClass { someField: "asdf" }
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue