Skip to content
Myr

Revert "Improve error message for null/undefined to res.status"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #3968

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent eed05a1 · Browse files · 3 files+5 added−36 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−36 removed

  • tests:+0 added−32 removed
  • other:+5 added−4 removed

3 files+5 added−36 removed

modified:lib/response.js-4 removed
62 unmodified lines
63 * @public64 */6566res.status = function status(code) {67 if (code === undefined || code === null) {68 throw new TypeError('code argument is required to res.status')69 }7067 this.statusCode = code;68 return this;69};70
1072 unmodified lines
modified:test/res.status.js-32 removed
modified:History.md+5 added
1unreleased2==========34 * Revert "Improve error message for `null`/`undefined` to `res.status`"564.17.0 / 2019-05-167===================89 * Add `express.raw` to parse bodies into `Buffer`
3468 unmodified lines