fez-lisp 1.6.72 → 1.6.74

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.
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.72",
5
+ "version": "1.6.74",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/check.js CHANGED
@@ -647,7 +647,8 @@ const resolveGetter = ({ rem, prop, name, env, caller, exp }) => {
647
647
  const rec = resolveGetterRec(rem, env)
648
648
  if (!rec) return true
649
649
  const [times, level, type, types] = resolveGetterRec(rem, env)
650
- if (times >= level)
650
+ const isUnknown = types.at(-1) === UNKNOWN
651
+ if (!isUnknown && times >= level)
651
652
  throw new RangeError(
652
653
  `(${caller}) is trying to access nested structure at level (${level}) which is deeper than it's (${
653
654
  times - 1