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 — assert: remove deprecated getFunction() usage · nodejs/node@0ddf73a

File tree

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

‎lib/assert.js‎

Copy file name to clipboardExpand all lines: lib/assert.js
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,7 @@ function getErrMessage(message, fn) {
308308
return;
309309
}
310310
} else {
311-
const fn = call.getFunction();
312-
if (!fn) {
313-
return message;
314-
}
315-
code = String(fn);
316-
identifier = `${code}${line}${column}`;
311+
return message;
317312
}
318313

319314
if (errorCache.has(identifier)) {
Collapse file

‎test/parallel/test-assert.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-assert.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ assert.throws(
921921
{
922922
code: 'ERR_ASSERTION',
923923
constructor: assert.AssertionError,
924-
message: 'The expression evaluated to a falsy value:\n\n assert(1 === 2)\n'
924+
message: 'false == true'
925925
}
926926
);
927927
assert.throws(

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.