chromium/third_party/blink/web_tests/external/wpt/performance-timeline/resources/worker-with-performance-observer.js

try {
  new PerformanceObserver(() => true);
  postMessage("SUCCESS");
} catch (ex) {
  postMessage("FAILURE");
}