fez-lisp 1.5.14 → 1.5.15
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/interpreter.js +2 -8
package/package.json
CHANGED
package/src/interpreter.js
CHANGED
@@ -716,10 +716,7 @@ export const keywords = {
|
|
716
716
|
KEYWORDS.DEFINE_VARIABLE
|
717
717
|
} ${stringifyArgs(args)})`
|
718
718
|
)
|
719
|
-
|
720
|
-
value: evaluate(args[1], env),
|
721
|
-
writable: false
|
722
|
-
})
|
719
|
+
env[name] = evaluate(args[1], env)
|
723
720
|
return env[name]
|
724
721
|
},
|
725
722
|
[KEYWORDS.ANONYMOUS_FUNCTION]: (args, env) => {
|
@@ -745,10 +742,7 @@ export const keywords = {
|
|
745
742
|
const localEnv = Object.create(env)
|
746
743
|
for (let i = 0; i < props.length; ++i) {
|
747
744
|
const value = evaluate(props[i], scope)
|
748
|
-
|
749
|
-
value,
|
750
|
-
writable: true
|
751
|
-
})
|
745
|
+
localEnv[params[i][VALUE]] = value
|
752
746
|
}
|
753
747
|
if (
|
754
748
|
name &&
|