forked from nodejscn/node-api-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
342 changed files
with
1,482 additions
and
1,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<!-- YAML | ||
added: v0.1.21 | ||
--> | ||
|
||
* `actual` {any} | ||
* `expected` {any} | ||
* `message` {string|Error} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<!-- YAML | ||
added: v0.1.21 | ||
--> | ||
|
||
* `actual` {any} | ||
* `expected` {any} | ||
* `message` {string|Error} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
Coverage is output as an array of [ScriptCoverage][] objects on the top-level | ||
key `result`: | ||
|
||
```json | ||
{ | ||
"result": [ | ||
{ | ||
"scriptId": "67", | ||
"url": "internal/tty.js", | ||
"functions": [] | ||
} | ||
] | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,10 @@ | ||
|
||
When set, Node.js will begin outputting [V8 JavaScript code coverage][] to the | ||
directory provided as an argument. Coverage is output as an array of | ||
|
||
|
||
```json | ||
{ | ||
"result": [ | ||
{ | ||
"scriptId": "67", | ||
"url": "internal/tty.js", | ||
"functions": [] | ||
} | ||
] | ||
} | ||
``` | ||
When set, Node.js will begin outputting [V8 JavaScript code coverage][] and | ||
[Source Map][] data to the directory provided as an argument (coverage | ||
information is written as JSON to files with a `coverage` prefix). | ||
|
||
`NODE_V8_COVERAGE` will automatically propagate to subprocesses, making it | ||
easier to instrument applications that call the `child_process.spawn()` family | ||
of functions. `NODE_V8_COVERAGE` can be set to an empty string, to prevent | ||
propagation. | ||
|
||
At this time coverage is only collected in the main thread and will not be | ||
output for code executed by worker threads. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
> Stability: 1 - Experimental | ||
|
||
If found, Source Map data is appended to the top-level key `source-map-cache` | ||
on the JSON coverage object. | ||
|
||
`source-map-cache` is an object with keys representing the files source maps | ||
were extracted from, and the values include the raw source-map URL | ||
(in the key `url`) and the parsed Source Map V3 information (in the key `data`). | ||
```json | ||
{ | ||
"result": [ | ||
{ | ||
"scriptId": "68", | ||
"url": "file:///absolute/path/to/source.js", | ||
"functions": [] | ||
} | ||
], | ||
"source-map-cache": { | ||
"file:///absolute/path/to/source.js": { | ||
"url": "./path-to-map.json", | ||
"data": { | ||
"version": 3, | ||
"sources": [ | ||
"file:///absolute/path/to/original.js" | ||
], | ||
"names": [ | ||
"Foo", | ||
"console", | ||
"info" | ||
], | ||
"mappings": "MAAMA,IACJC,YAAaC", | ||
"sourceRoot": "./" | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.