This prevents SM from silently finalizing objects off the JSRuntime's thread.