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

Needs to specify set state to max #16

Closed
arv opened this issue Feb 6, 2015 · 3 comments
Closed

Needs to specify set state to max #16

arv opened this issue Feb 6, 2015 · 3 comments

Comments

@arv
Copy link
Contributor

arv commented Feb 6, 2015

There are a few alg steps like these:

Set _entry_.[[State]] to the max of _entry_.[[State]] and "translate".

We need to specify what this means.

How about:

GetStateValue(state)

  1. If state is the string "fetch" return 0.
  2. If state is the string "translate" return 1.
  3. If state is the string "instantiate" return 2.
  4. If state is the string "link" return 3.
  5. If state is the string "ready" return 4.

SetStateToMax(entry, newState)

  1. Let state be entry.[[State]].
  2. Let stateValue be GetStateValue(state).
  3. Let newStateValue be GetStateValue(newState).
  4. If newStateValue is larger than stateValue, set entry.[[State]] to newState.
@caridy
Copy link
Contributor

caridy commented Jul 30, 2015

Similarely, we have steps like:

1. If _entry_.[[State]] is greater than "link", return a new error promise.

and

1. If _pair_.[[value]].[[State]] is less than "link", then throw a new TypeError.

caridy added a commit that referenced this issue Aug 5, 2015
fixes issue #16: abstract operation `SetStateToMax()`
@caridy
Copy link
Contributor

caridy commented Aug 21, 2015

Solved by #65

@caridy
Copy link
Contributor

caridy commented Aug 21, 2015

Closing this now that we have all abstract operations in place.

@caridy caridy closed this as completed Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants