summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/threads.js b/threads.js
index 2259850..3ff7a50 100644
--- a/threads.js
+++ b/threads.js
@@ -2954,7 +2954,9 @@ VariableFrame.prototype.getVar = function (name, upvars) {
};
VariableFrame.prototype.addVar = function (name, value) {
- this.vars[name] = (value === 0 ? 0 : value || null);
+ this.vars[name] = (value === 0 ? 0
+ : value === false ? false
+ : value === '' ? '' : value || null);
};
VariableFrame.prototype.deleteVar = function (name) {