gecko-dev/dom/worklet/tests/worklet_paintWorklet.js

4 строки
164 B
JavaScript

// This should work for real... at some point.
registerPaint("sure!", () => {});
console.log(this instanceof PaintWorkletGlobalScope ? "So far so good" : "error");