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

feat(quokka): add js event loop to runtime #3

Merged
merged 3 commits into from
Jun 9, 2017

Conversation

fibonacci1729
Copy link
Member

WIP it good.

@fibonacci1729 fibonacci1729 self-assigned this Jun 7, 2017
@fibonacci1729
Copy link
Member Author

TODO: Update quokka and acid to use accessor for vm (runtime.VM()) instead of as a field.

// 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.
Copy link
Member

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...
Copy link
Member

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
}

Copy link
Member

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?

Copy link
Member

@technosophos technosophos left a comment

Choose a reason for hiding this comment

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

Merge away!

@technosophos technosophos merged commit bb6edf6 into deis:master Jun 9, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants