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:
AkaHarshit
2026-02-01 08:21:17 +05:30
committed by GitHub
parent a479419b16
commit c9ecf7b658
3 changed files with 25 additions and 1 deletions

View File

@@ -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