Release 5.7.1 (#1312)
This commit is contained in:
@@ -460,7 +460,7 @@ function P(resolver) {
|
||||
throw new TypeError('Promise resolver ' + resolver + ' is not a function');
|
||||
}
|
||||
|
||||
if (this instanceof Promise === false) {
|
||||
if (this instanceof P === false) {
|
||||
throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
|
||||
}
|
||||
|
||||
@@ -1049,7 +1049,7 @@ var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMA
|
||||
mark: noop$1,
|
||||
measure: noop$1
|
||||
};
|
||||
var preamble = "FA \"5.7.0\"";
|
||||
var preamble = "FA \"5.7.1\"";
|
||||
|
||||
var begin = function begin(name) {
|
||||
p.mark("".concat(preamble, " ").concat(name, " begins"));
|
||||
@@ -1857,9 +1857,13 @@ function onTree(root) {
|
||||
hclAdd('complete');
|
||||
hclRemove('pending');
|
||||
if (typeof callback === 'function') callback();
|
||||
mark();
|
||||
resolve();
|
||||
});
|
||||
}).catch(reject).finally(mark);
|
||||
}).catch(function () {
|
||||
mark();
|
||||
reject();
|
||||
});
|
||||
});
|
||||
}
|
||||
function onNode(node) {
|
||||
|
||||
Reference in New Issue
Block a user