The ReferenceError object represents an error when a variable that doesn't exist (or hasn't yet been initialized) in the current scope is referenced.
ReferenceError is a serializable object, so it can be cloned with structuredClone() or copied between Workers using postMessage().
ReferenceError is a subclass of Error.