GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: rename stackStartFunction in assert.md · nodejs/node@168abb5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • assert.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/assert.md‎

Copy file name to clipboardExpand all lines: doc/api/assert.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ assert.fail(new TypeError('need array'));
587587
Using `assert.fail()` with more than two arguments is possible but deprecated.
588588
See below for further details.
589589

590-
## assert.fail(actual, expected[, message[, operator[, stackStartFunction]]])
590+
## assert.fail(actual, expected[, message[, operator[, stackStartFn]]])
591591
<!-- YAML
592592
added: v0.1.21
593593
changes:
@@ -600,7 +600,7 @@ changes:
600600
* `expected` {any}
601601
* `message` {string|Error}
602602
* `operator` {string} **Default:** `'!='`
603-
* `stackStartFunction` {Function} **Default:** `assert.fail`
603+
* `stackStartFn` {Function} **Default:** `assert.fail`
604604

605605
> Stability: 0 - Deprecated: Use `assert.fail([message])` or other assert
606606
> functions instead.
@@ -610,7 +610,7 @@ If `message` is falsy, the error message is set as the values of `actual` and
610610
`expected` arguments are provided, `operator` will default to `'!='`. If
611611
`message` is provided as third argument it will be used as the error message and
612612
the other arguments will be stored as properties on the thrown object. If
613-
`stackStartFunction` is provided, all stack frames above that function will be
613+
`stackStartFn` is provided, all stack frames above that function will be
614614
removed from stacktrace (see [`Error.captureStackTrace`]). If no arguments are
615615
given, the default message `Failed` will be used.
616616

@@ -636,7 +636,7 @@ assert.fail(1, 2, new TypeError('need array'));
636636
In the last three cases `actual`, `expected`, and `operator` have no
637637
influence on the error message.
638638

639-
Example use of `stackStartFunction` for truncating the exception's stacktrace:
639+
Example use of `stackStartFn` for truncating the exception's stacktrace:
640640

641641
```js
642642
function suppressFrame() {

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.