| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0da7a11 commit 656fb46
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -154,6 +154,9 @@ const legacyWrapperList = new SafeSet([ | |||
| 154 | 154 | } | |
| 155 | 155 | ||
| 156 | 156 | // Set up internalBinding() in the closure. | |
| 157 | + /** | ||
| 158 | + * @type {InternalBinding} | ||
| 159 | + */ | ||
| 157 | 160 | let internalBinding; | |
| 158 | 161 | { | |
| 159 | 162 | const bindingObj = ObjectCreate(null); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -352,7 +352,11 @@ function makeNodeErrorWithCode(Base, key) { | |||
| 352 | 352 | }; | |
| 353 | 353 | } | |
| 354 | 354 | ||
| 355 | - // This function removes unnecessary frames from Node.js core errors. | ||
| 355 | + /** | ||
| 356 | + * This function removes unnecessary frames from Node.js core errors. | ||
| 357 | + * @template {(...args: any[]) => any} T | ||
| 358 | + * @type {(fn: T) => T} | ||
| 359 | + */ | ||
| 356 | 360 | function hideStackFrames(fn) { | |
| 357 | 361 | // We rename the functions that will be hidden to cut off the stacktrace | |
| 358 | 362 | // at the outermost one | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,6 +280,9 @@ const copyProps = (src, dest) => { | |||
| 280 | 280 | }); | |
| 281 | 281 | }; | |
| 282 | 282 | ||
| 283 | + /** | ||
| 284 | + * @type {typeof primordials.makeSafe} | ||
| 285 | + */ | ||
| 283 | 286 | const makeSafe = (unsafe, safe) => { | |
| 284 | 287 | if (SymbolIterator in unsafe.prototype) { | |
| 285 | 288 | const dummy = new unsafe(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,84 @@ | |||
| 1 | + { | ||
| 2 | + "include": ["lib","doc"], | ||
| 3 | + "exclude": ["src","tools","out"], | ||
| 4 | + "files": [ | ||
| 5 | + "./typings/internalBinding.d.ts", | ||
| 6 | + "./typings/primordials.d.ts" | ||
| 7 | + ], | ||
| 8 | + "compilerOptions": { | ||
| 9 | + "allowJs": true, | ||
| 10 | + "checkJs": false, | ||
| 11 | + "noEmit": true, | ||
| 12 | + "lib": ["ESNext"], | ||
| 13 | + "target": "ESNext", | ||
| 14 | + "module": "CommonJS", | ||
| 15 | + "baseUrl": ".", | ||
| 16 | + "paths": { | ||
| 17 | + "_http_agent": ["./lib/_http_agent.js"], | ||
| 18 | + "_http_client": ["./lib/_http_client.js"], | ||
| 19 | + "_http_common": ["./lib/_http_common.js"], | ||
| 20 | + "_http_incoming": ["./lib/_http_incoming.js"], | ||
| 21 | + "_http_outgoing": ["./lib/_http_outgoing.js"], | ||
| 22 | + "_http_server": ["./lib/_http_server.js"], | ||
| 23 | + "_stream_duplex": ["./lib/_stream_duplex.js"], | ||
| 24 | + "_stream_passthrough": ["./lib/_stream_passthrough.js"], | ||
| 25 | + "_stream_readable": ["./lib/_stream_readable.js"], | ||
| 26 | + "_stream_transform": ["./lib/_stream_transform.js"], | ||
| 27 | + "_stream_wrap": ["./lib/_stream_wrap.js"], | ||
| 28 | + "_stream_writable": ["./lib/_stream_writable.js"], | ||
| 29 | + "_tls_common": ["./lib/_tls_common.js"], | ||
| 30 | + "_tls_wrap": ["./lib/_tls_wrap.js"], | ||
| 31 | + "assert": ["./lib/assert.js"], | ||
| 32 | + "assert/strict": ["./lib/assert/strict.js"], | ||
| 33 | + "async_hooks": ["./lib/async_hooks.js"], | ||
| 34 | + "buffer": ["./lib/buffer.js"], | ||
| 35 | + "child_process": ["./lib/child_process.js"], | ||
| 36 | + "cluster": ["./lib/cluster.js"], | ||
| 37 | + "console": ["./lib/console.js"], | ||
| 38 | + "constants": ["./lib/constants.js"], | ||
| 39 | + "crypto": ["./lib/crypto.js"], | ||
| 40 | + "dgram": ["./lib/dgram.js"], | ||
| 41 | + "diagnostics_channel": ["./lib/diagnostics_channel.js"], | ||
| 42 | + "dns": ["./lib/dns.js"], | ||
| 43 | + "dns/promises": ["./lib/dns/promises.js"], | ||
| 44 | + "domain": ["./lib/domain.js"], | ||
| 45 | + "events": ["./lib/events.js"], | ||
| 46 | + "fs": ["./lib/fs.js"], | ||
| 47 | + "fs/promises": ["./lib/fs/promises.js"], | ||
| 48 | + "http": ["./lib/http.js"], | ||
| 49 | + "http2": ["./lib/http2.js"], | ||
| 50 | + "https": ["./lib/https.js"], | ||
| 51 | + "inspector": ["./lib/inspector.js"], | ||
| 52 | + "internal/*": ["./lib/internal/*"], | ||
| 53 | + "module": ["./lib/module.js"], | ||
| 54 | + "net": ["./lib/net.js"], | ||
| 55 | + "os": ["./lib/os.js"], | ||
| 56 | + "path": ["./lib/path.js"], | ||
| 57 | + "path/posix": ["./lib/path/posix.js"], | ||
| 58 | + "path/win32": ["./lib/path/win32.js"], | ||
| 59 | + "perf_hooks": ["./lib/perf_hooks.js"], | ||
| 60 | + "process": ["./lib/process.js"], | ||
| 61 | + "punycode": ["./lib/punycode.js"], | ||
| 62 | + "querystring": ["./lib/querystring.js"], | ||
| 63 | + "readline": ["./lib/readline.js"], | ||
| 64 | + "repl": ["./lib/repl.js"], | ||
| 65 | + "stream": ["./lib/stream.js"], | ||
| 66 | + "stream/promises": ["./lib/stream/promises.js"], | ||
| 67 | + "string_decoder": ["./lib/string_decoder.js"], | ||
| 68 | + "sys": ["./lib/sys.js"], | ||
| 69 | + "timers": ["./lib/timers.js"], | ||
| 70 | + "timers/promises": ["./lib/timers/promises.js"], | ||
| 71 | + "tls": ["./lib/tls.js"], | ||
| 72 | + "trace_events": ["./lib/trace_events.js"], | ||
| 73 | + "tty": ["./lib/tty.js"], | ||
| 74 | + "url": ["./lib/url.js"], | ||
| 75 | + "util": ["./lib/util.js"], | ||
| 76 | + "util/types": ["./lib/util/types.js"], | ||
| 77 | + "v8": ["./lib/v8.js"], | ||
| 78 | + "vm": ["./lib/vm.js"], | ||
| 79 | + "wasi": ["./lib/wasi.js"], | ||
| 80 | + "worker_threads": ["./lib/worker_threads.js"], | ||
| 81 | + "zlib": ["./lib/zlib.js"], | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments