Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91001d3

Browse filesBrowse files
hiroppyMylesBorins
authored andcommitted
doc: replace functions with arrow functions
PR-URL: #6203 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 038801d commit 91001d3
Copy full SHA for 91001d3

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.markdown‎

Copy file name to clipboardExpand all lines: doc/api/errors.markdown
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ allowable type. For example, passing a function to a parameter which expects a
410410
string would be considered a TypeError.
411411

412412
```js
413-
require('url').parse(function() { });
413+
require('url').parse(() => { });
414414
// throws TypeError, since it expected a string
415415
```
416416

Collapse file

‎doc/api/vm.markdown‎

Copy file name to clipboardExpand all lines: doc/api/vm.markdown
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ context. The primary use case is to get access to the V8 debug object:
222222

223223
```js
224224
const Debug = vm.runInDebugContext('Debug');
225-
Debug.scripts().forEach(function(script) { console.log(script.name); });
225+
Debug.scripts().forEach((script) => { console.log(script.name); });
226226
```
227227

228228
Note that the debug context and object are intrinsically tied to V8's debugger

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.