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 b872fea

Browse filesBrowse files
hiroppyMyles Borins
authored andcommitted
doc: replace functions with arrow functions
PR-URL: #6203 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 0f9405d commit b872fea
Copy full SHA for b872fea

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
@@ -213,7 +213,7 @@ context. The primary use case is to get access to the V8 debug object:
213213

214214
```js
215215
const Debug = vm.runInDebugContext('Debug');
216-
Debug.scripts().forEach(function(script) { console.log(script.name); });
216+
Debug.scripts().forEach((script) => { console.log(script.name); });
217217
```
218218

219219
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.