-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(quokka): add js event loop to runtime #3
Conversation
TODO: Update quokka and acid to use accessor for vm (runtime.VM()) instead of as a field. |
pkg/javascript/runtime.go
Outdated
// very intelligble at a glance. The idea is that | ||
// ```t.call.ArgumentList[2:]``` contains the args | ||
// for the callback given to setTimer and setInterval. | ||
// This block is directly from from natto. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny nit: "from from"
v, err := call.Otto.ToValue(t) | ||
if err != nil { | ||
// Again, not sure how we handle these errors? | ||
// The beautiful evil hell of dynamic langs... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't EVER remove this comment
} | ||
return ret, nil | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment on this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge away!
WIP it good.