summaryrefslogtreecommitdiff
path: root/cli/rt/40_performance.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/rt/40_performance.js')
-rw-r--r--cli/rt/40_performance.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/rt/40_performance.js b/cli/rt/40_performance.js
index b921ca43a..573fc8051 100644
--- a/cli/rt/40_performance.js
+++ b/cli/rt/40_performance.js
@@ -249,7 +249,10 @@
startOrMeasureOptions = {},
endMark,
) {
- if (startOrMeasureOptions && typeof startOrMeasureOptions === "object") {
+ if (
+ startOrMeasureOptions && typeof startOrMeasureOptions === "object" &&
+ Object.keys(startOrMeasureOptions).length > 0
+ ) {
if (endMark) {
throw new TypeError("Options cannot be passed with endMark.");
}