summaryrefslogtreecommitdiff
path: root/static/js/lang.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/lang.js')
-rw-r--r--static/js/lang.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/static/js/lang.js b/static/js/lang.js
index 5000e81..fe6f25b 100644
--- a/static/js/lang.js
+++ b/static/js/lang.js
@@ -534,12 +534,10 @@ class Environment {
const scope = this.scopes[this.scopes.length - 1];
switch (node.type) {
- case N.NumberLiteral: {
+ case N.NumberLiteral:
+ case N.StringLiteral:
+ case N.BoolLiteral:
return node.val;
- }
- case N.StringLiteral: {
- return node.val;
- }
case N.FnDecl: {
scope[node.name] = node;
return node;