errors: refactor to use more primordials

PR-URL: https://github.com/nodejs/node/pull/36167
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Antoine du Hamel authored and Shelley Vohr committed 2020-11-22 13:20:31 -08:00
1 parent 545ac1fec5
commit bcbf176c22
2 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ assert.throws(
() => { new SystemError(); },
{
name: 'TypeError',
message: 'Cannot read property \'match\' of undefined'
message: 'String.prototype.match called on null or undefined'
}
);