@@ -323,21 +323,22 @@ function makeFaster() {
323323 });
324324}
325325
326- makeFaster (); // will throw:
327- // /home/gbusey/file.js:6
328- // throw new Error('oh no!');
329- // ^
330- // Error: oh no!
331- // at speedy (/home/gbusey/file.js:6:11)
332- // at makeFaster (/home/gbusey/file.js:5:3)
333- // at Object.<anonymous> (/home/gbusey/file.js:10:1)
334- // at Module._compile (module.js:456:26)
335- // at Object.Module._extensions..js (module.js:474:10)
336- // at Module.load (module.js:356:32)
337- // at Function.Module._load (module.js:312:12)
338- // at Function.Module.runMain (module.js:497:10)
339- // at startup (node.js:119:16)
340- // at node.js:906:3
326+ makeFaster ();
327+ // will throw:
328+ // /home/gbusey/file.js:6
329+ // throw new Error('oh no!');
330+ // ^
331+ // Error: oh no!
332+ // at speedy (/home/gbusey/file.js:6:11)
333+ // at makeFaster (/home/gbusey/file.js:5:3)
334+ // at Object.<anonymous> (/home/gbusey/file.js:10:1)
335+ // at Module._compile (module.js:456:26)
336+ // at Object.Module._extensions..js (module.js:474:10)
337+ // at Module.load (module.js:356:32)
338+ // at Function.Module._load (module.js:312:12)
339+ // at Function.Module.runMain (module.js:497:10)
340+ // at startup (node.js:119:16)
341+ // at node.js:906:3
341342```
342343
343344The location information will be one of:
@@ -368,7 +369,7 @@ For example:
368369
369370``` js
370371require (' net' ).connect (- 1 );
371- // throws "RangeError: "port" option should be >= 0 and < 65536: -1"
372+ // throws "RangeError: "port" option should be >= 0 and < 65536: -1"
372373```
373374
374375Node.js will generate and throw ` RangeError ` instances * immediately* as a form
@@ -385,7 +386,7 @@ will do so.
385386
386387``` js
387388doesNotExist;
388- // throws ReferenceError, doesNotExist is not a variable in this program.
389+ // throws ReferenceError, doesNotExist is not a variable in this program.
389390```
390391
391392Unless an application is dynamically generating and running code,
@@ -419,7 +420,7 @@ string would be considered a TypeError.
419420
420421``` js
421422require (' url' ).parse (() => { });
422- // throws TypeError, since it expected a string
423+ // throws TypeError, since it expected a string
423424```
424425
425426Node.js will generate and throw ` TypeError ` instances * immediately* as a form
@@ -709,7 +710,7 @@ const urlSearchParams = new URLSearchParams('foo=bar&baz=new');
709710
710711const buf = Buffer .alloc (1 );
711712urlSearchParams .has .call (buf, ' foo' );
712- // Throws a TypeError with code 'ERR_INVALID_THIS'
713+ // Throws a TypeError with code 'ERR_INVALID_THIS'
713714```
714715
715716<a id =" ERR_INVALID_TUPLE " ></a >
0 commit comments