fez-lisp 1.6.31 → 1.6.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/debugger.js +3 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "fez-lisp",
3
3
  "description": "Lisp interpreted & compiled to JavaScript",
4
4
  "author": "AT290690",
5
- "version": "1.6.31",
5
+ "version": "1.6.32",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/debugger.js CHANGED
@@ -888,9 +888,10 @@ export const startDebug = (ast, speed = 250, start, end) => {
888
888
  debugStack.length = 0
889
889
  evaluate(ast)
890
890
  start = start ? debugStack.findIndex(start) : 0
891
- end = end ? debugStack.findIndex(end) : debugStack.length
892
- const stack = debugStack.slice(start, end).reverse()
891
+ end = end ? debugStack.findIndex(end) + 1 : debugStack.length
892
+ const stack = debugStack.slice(start, end)
893
893
  if (speed !== 0) {
894
+ stack.reverse()
894
895
  const rec = () => {
895
896
  setTimeout(() => {
896
897
  if (stack.length) {