-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
Description
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)
- If state is the string
"fetch"
return 0. - If state is the string
"translate"
return 1. - If state is the string
"instantiate"
return 2. - If state is the string
"link"
return 3. - If state is the string
"ready"
return 4.
SetStateToMax(entry, newState)
- Let state be entry.[[State]].
- Let stateValue be GetStateValue(state).
- Let newStateValue be GetStateValue(newState).
- If newStateValue is larger than stateValue, set entry.[[State]] to newState.