aboutsummaryrefslogtreecommitdiff
path: root/node_modules/react-dom/lib/ReactDebugTool.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/react-dom/lib/ReactDebugTool.js')
-rw-r--r--node_modules/react-dom/lib/ReactDebugTool.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/react-dom/lib/ReactDebugTool.js b/node_modules/react-dom/lib/ReactDebugTool.js
index 9ec0d20cd..4df393017 100644
--- a/node_modules/react-dom/lib/ReactDebugTool.js
+++ b/node_modules/react-dom/lib/ReactDebugTool.js
@@ -226,7 +226,9 @@ function markEnd(debugID, markType) {
}
performance.clearMarks(markName);
- performance.clearMeasures(measurementName);
+ if (measurementName) {
+ performance.clearMeasures(measurementName);
+ }
}
var ReactDebugTool = {