mirror of
https://github.com/expressjs/express.git
synced 2026-02-22 03:51:36 +00:00
feat: Allow passing null or undefined as the value for options in app.render (#6903)
* fix: allow null options in app.render * fix: ensure options are initialized to an empty object in app.render * docs: add history entry --------- Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
This commit is contained in:
@@ -523,7 +523,7 @@ app.render = function render(name, options, callback) {
|
||||
var cache = this.cache;
|
||||
var done = callback;
|
||||
var engines = this.engines;
|
||||
var opts = options;
|
||||
var opts = options || {};
|
||||
var view;
|
||||
|
||||
// support callback function as second arg
|
||||
|
||||
Reference in New Issue
Block a user