-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
testTest or coverageTest or coverage
Description
Support plan
- is this issue currently blocking your project? (yes/no): no
- is this issue affecting a production system? (yes/no): no
Context
- node version: v16.9.0
- module version: 20.1.5
- environment (e.g. node, browser, native): node
- used with (e.g. hapi application, another framework, standalone, ...): CITGM
- any other relevant information:
What problem are you trying to solve?
Run tests with Node.js 16.9.0 (nodejs/node#40011).
Two of them fail because V8 changed the error message when trying to read properties from null
or undefined
.
103) Core _debug() outputs 500 on ext exception:
actual expected
"Cannot read propertiesproperty 'here' of null (reading 'here')"
Expected "Cannot read properties of null (reading 'here')" to equal specified value: "Cannot read property 'here' of null"
at /home/iojs/tmp/citgm_tmp/08e39eff-f7ef-4ead-92fa-cc5d18384c97/@hapi/hapi/test/core.js:338:44
231) handler execute() returns 500 on handler exception (next tick await):
actual expected
"Cannot read propertiesproperty 'here' of null (reading 'here')"
Expected "Cannot read properties of null (reading 'here')" to equal specified value: "Cannot read property 'here' of null"
at /home/iojs/tmp/citgm_tmp/08e39eff-f7ef-4ead-92fa-cc5d18384c97/@hapi/hapi/test/handler.js:76:44
Do you have a new or modified API suggestion to solve the problem?
Adapt the following assertions to support the new error message:
Line 65 in c2107e9
console.error = function (...args) { |
Line 338 in c2107e9
expect(event.error.message).to.equal('Cannot read property \'here\' of null'); |
devinivy and Nargonath
Metadata
Metadata
Assignees
Labels
testTest or coverageTest or coverage