Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Promisify up through source text module record's Evaluate() #15

Closed
wants to merge 3 commits into from

Conversation

domenic
Copy link
Member

@domenic domenic commented Apr 23, 2018

See individual commit messages.

This has one big problem; see #18 for that. I think we might want to merge this with that large caveat, as the intention is clear, and fix it afterward. Suggestions and reviews welcome.

domenic added 3 commits April 23, 2018 15:01
It was always pretty silly to use Completion() here, so in the new version, let's not do that.
Now InnerModuleEvaluation returns a promise for the index, instead of the index itself. It also awaits recursive invocations of itself, as well as the invocation of ModuleExecution.

This implements variant A (sequential, blocking execution) since it is easier to write spec text for; we can in the future easily (?) convert to variant B by making local modifications to InnerModuleEvaluation's child-evaluation loop.
Now all Source Text Module Records' Evaluate() concrete methods return promises, bubbling up the async-ness from InnerModuleEvaluation.
@MylesBorins
Copy link
Member

landed in d4d988d...caba498

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

Successfully merging this pull request may close these issues.

2 participants