Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceObserver.cpp

Issue 2468063006: Updated error message in PerformanceObserver.observe (Closed)
Patch Set: resolved comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp b/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
index bbd92920cba7868293214fec83a66ae4715cc663..b1c89825040d17b34a1fce9258bb9972aa9bfa08 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
@@ -49,7 +49,8 @@ void PerformanceObserver::observe(const PerformanceObserverInit& observerInit,
}
if (entryTypes == PerformanceEntry::Invalid) {
exceptionState.throwTypeError(
- "A Performance Observer MUST have a non-empty entryTypes attribute.");
+ "A Performance Observer MUST have at least one valid entryType in its "
+ "entryTypes attribute.");
return;
}
m_filterOptions = entryTypes;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698