-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further improvements to environment visualizer (#1454)
* Env instruction no longer pushed onto an agenda as the last item * Avoid unnecessary block statements * Refactoring context.runtime.envsteps to an option paramter to be in line with the notion that the context shouldn't be updated by the frontend * * Use the step limit option to allow users to limit the number of steps to the ec-evaluator * Fixed bug with ec-evaluator: conditional statements now produce undefined if no value is produced since they are value producing. * Add check for simple functions and bypass to return argument if so * Add reset instruction only if there is no marker next * Check for arguments in the application instruction before pushing environment instruction * Avoid unnecessary break and continue markers * Add support for rest syntax in ec-evaluator --------- Co-authored-by: Dick Ong <[email protected]>
- Loading branch information
Showing
9 changed files
with
242 additions
and
52 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/ec-evaluator/__tests__/__snapshots__/ec-evaluator.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.