Skip to content

Conversation

@fi3ework
Copy link
Member

@fi3ework fi3ework commented Oct 28, 2025

Summary

to avoid possible TypeError: Illegal invocation when running in browser (encounter this issue when developing browser mode).

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 28, 2025 11:12
@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 43ef56f
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6900a53aafb54e0008d4d8ec
😎 Deploy Preview https://deploy-preview-655--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a TypeError: Illegal invocation error that occurs when using setTimeout in browser environments by properly binding the function to globalThis.

Key Change:

  • Binds setTimeout to globalThis when storing the original timer reference to prevent illegal invocation errors in browsers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fi3ework fi3ework requested a review from 9aoy October 29, 2025 03:25
@9aoy 9aoy merged commit 52e26c6 into main Oct 29, 2025
18 checks passed
@9aoy 9aoy deleted the fi3ework-patch-1 branch October 29, 2025 03:39
@9aoy 9aoy mentioned this pull request Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants