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 — domain: add name to monkey-patched emit function · nodejs/node@bd38dfb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • domain.js
  • test/parallel
    • test-domain-dep0097.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/domain.js‎

Copy file name to clipboardExpand all lines: lib/domain.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ EventEmitter.init = function() {
456456
};
457457

458458
const eventEmit = EventEmitter.prototype.emit;
459-
EventEmitter.prototype.emit = function(...args) {
459+
EventEmitter.prototype.emit = function emit(...args) {
460460
const domain = this.domain;
461461

462462
const type = args[0];
Collapse file

‎test/parallel/test-domain-dep0097.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-domain-dep0097.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const inspector = require('inspector');
99

1010
process.on('warning', common.mustCall((warning) => {
1111
assert.strictEqual(warning.code, 'DEP0097');
12-
assert.match(warning.message, /Triggered by calling <anonymous> on process/);
12+
assert.match(warning.message, /Triggered by calling emit on process/);
1313
}));
1414

1515
domain.create().run(() => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.