| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6622650 commit 5b44107
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ | |||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | ||
| 4 | 4 | const common = require('../common'); | |
| 5 | + const { inspect } = require('util'); | ||
| 5 | 6 | ||
| 6 | 7 | const { ok, strictEqual, throws } = require('assert'); | |
| 7 | 8 | ||
@@ -132,3 +133,11 @@ const { ok, strictEqual, throws } = require('assert'); | |||
| 132 | 133 | ); | |
| 133 | 134 | } | |
| 134 | 135 | } | |
| 136 | + | ||
| 137 | + { | ||
| 138 | + const ac = new AbortController(); | ||
| 139 | + strictEqual(inspect(ac, { depth: 1 }), | ||
| 140 | + 'AbortController { signal: [AbortSignal] }'); | ||
| 141 | + strictEqual(inspect(ac, { depth: null }), | ||
| 142 | + 'AbortController { signal: AbortSignal { aborted: false } }'); | ||
| 143 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments