Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reasons for using var ? #20648

Closed
cyphernull opened this issue Jan 24, 2021 · 1 comment
Closed

reasons for using var ? #20648

cyphernull opened this issue Jan 24, 2021 · 1 comment

Comments

@cyphernull
Copy link

cyphernull commented Jan 24, 2021

function unstable_runWithPriority(priorityLevel, eventHandler) {

Is there a certain reason for using var instead of let in these unstale_xxx functions and other variables' definition ? 🙂

@rickhanlonii
Copy link
Member

The scheduler is designed to be used with no build steps, which means using ES5 syntax.

See #13582 for more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants