fez-lisp 1.6.72 → 1.6.73
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/lib/baked/std.js +1 -1
- package/package.json +1 -1
- package/src/check.js +2 -1
package/package.json
CHANGED
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
|
-
|
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
|