@@ -184,7 +184,7 @@ function handleRequest(req, res) {
184184}
185185```
186186
187- ## Additions to Error objects
187+ ## Additions to ` Error ` objects
188188
189189<!-- type=misc -->
190190
@@ -267,11 +267,11 @@ serverDomain.run(() => {
267267});
268268```
269269
270- ## domain.create()
270+ ## ` domain.create() `
271271
272272* Returns: {Domain}
273273
274- ## Class: Domain
274+ ## Class: ` Domain `
275275
276276* Extends: {EventEmitter}
277277
@@ -280,14 +280,14 @@ uncaught exceptions to the active `Domain` object.
280280
281281To handle the errors that it catches, listen to its ` 'error' ` event.
282282
283- ### domain.members
283+ ### ` domain.members `
284284
285285* {Array}
286286
287287An array of timers and event emitters that have been explicitly added
288288to the domain.
289289
290- ### domain.add(emitter)
290+ ### ` domain.add(emitter) `
291291
292292* ` emitter ` {EventEmitter|Timer} emitter or timer to be added to the domain
293293
@@ -303,7 +303,7 @@ the domain `'error'` handler.
303303If the Timer or ` EventEmitter ` was already bound to a domain, it is removed
304304from that one, and bound to this one instead.
305305
306- ### domain.bind(callback)
306+ ### ` domain.bind(callback) `
307307
308308* ` callback ` {Function} The callback function
309309* Returns: {Function} The bound function
@@ -328,7 +328,7 @@ d.on('error', (er) => {
328328});
329329```
330330
331- ### domain.enter()
331+ ### ` domain.enter() `
332332
333333The ` enter() ` method is plumbing used by the ` run() ` , ` bind() ` , and
334334` intercept() ` methods to set the active domain. It sets ` domain.active ` and
@@ -341,7 +341,7 @@ Calling `enter()` changes only the active domain, and does not alter the domain
341341itself. ` enter() ` and ` exit() ` can be called an arbitrary number of times on a
342342single domain.
343343
344- ### domain.exit()
344+ ### ` domain.exit() `
345345
346346The ` exit() ` method exits the current domain, popping it off the domain stack.
347347Any time execution is going to switch to the context of a different chain of
@@ -356,7 +356,7 @@ Calling `exit()` changes only the active domain, and does not alter the domain
356356itself. ` enter() ` and ` exit() ` can be called an arbitrary number of times on a
357357single domain.
358358
359- ### domain.intercept(callback)
359+ ### ` domain.intercept(callback) `
360360
361361* ` callback ` {Function} The callback function
362362* Returns: {Function} The intercepted function
@@ -391,14 +391,14 @@ d.on('error', (er) => {
391391});
392392```
393393
394- ### domain.remove(emitter)
394+ ### ` domain.remove(emitter) `
395395
396396* ` emitter ` {EventEmitter|Timer} emitter or timer to be removed from the domain
397397
398398The opposite of [ ` domain.add(emitter) ` ] [ ] . Removes domain handling from the
399399specified emitter.
400400
401- ### domain.run(fn\ [ , ...args\] )
401+ ### ` domain.run(fn[, ...args]) `
402402
403403* ` fn ` {Function}
404404* ` ...args ` {any}
0 commit comments