@@ -119,9 +119,6 @@ Tests whether `name`, `expected`, and `code` are part of a raised warning. If
119119an expected warning does not have a code then ` common.noWarnCode ` can be used
120120to indicate this.
121121
122- ### noWarnCode
123- See ` common.expectWarning() ` for usage.
124-
125122### fileExists(pathname)
126123* pathname [ < ; string>]
127124* return [ < ; boolean>]
@@ -147,13 +144,11 @@ consisting of all `ArrayBufferView` and an `ArrayBuffer`.
147144
148145Returns the file name and line number for the provided Function.
149146
150- ### runWithInvalidFD(func)
151- * ` func ` [ < ; Function>]
147+ ### getTTYfd()
152148
153- Runs ` func ` with an invalid file descriptor that is an unsigned integer and
154- can be used to trigger ` EBADF ` as the first argument. If no such file
155- descriptor could be generated, a skip message will be printed and the ` func `
156- will not be run.
149+ Attempts to get a valid TTY file descriptor. Returns ` -1 ` if it fails.
150+
151+ The TTY file descriptor is assumed to be capable of being writable.
157152
158153### globalCheck
159154* [ < ; boolean>]
@@ -328,6 +323,9 @@ Returns `true` if the exit code `exitCode` and/or signal name `signal` represent
328323the exit code and/or signal name of a node process that aborted, ` false `
329324otherwise.
330325
326+ ### noWarnCode
327+ See ` common.expectWarning() ` for usage.
328+
331329### opensslCli
332330* [ < ; boolean>]
333331
@@ -369,6 +367,14 @@ original state after calling [`common.hijackStdOut()`][].
369367
370368Path to the 'root' directory. either ` / ` or ` c:\\ ` (windows)
371369
370+ ### runWithInvalidFD(func)
371+ * ` func ` [ < ; Function>]
372+
373+ Runs ` func ` with an invalid file descriptor that is an unsigned integer and
374+ can be used to trigger ` EBADF ` as the first argument. If no such file
375+ descriptor could be generated, a skip message will be printed and the ` func `
376+ will not be run.
377+
372378### skip(msg)
373379* ` msg ` [ < ; string>]
374380
@@ -695,12 +701,6 @@ The realpath of the testing temporary directory.
695701
696702Deletes and recreates the testing temporary directory.
697703
698- ### getTTYfd()
699-
700- Attempts to get a valid TTY file descriptor. Returns ` -1 ` if it fails.
701-
702- The TTY file descriptor is assumed to be capable of being writable.
703-
704704## WPT Module
705705
706706The wpt.js module is a port of parts of
0 commit comments