From 3e930b907a834a7da759478b8d3f52fef1da22d8 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Wed, 8 Mar 2017 19:14:26 +0100 Subject: [PATCH] Fixed: Retain options argument in Root#load when used with promises, see #684 --- src/root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root.js b/src/root.js index aa8715e33..d344c5cee 100644 --- a/src/root.js +++ b/src/root.js @@ -78,7 +78,7 @@ Root.prototype.load = function load(filename, options, callback) { } var self = this; if (!callback) - return util.asPromise(load, self, filename); + return util.asPromise(load, self, filename, options); var sync = callback === SYNC; // undocumented