diff options
| author | jmoenig <jens@moenig.org> | 2013-11-26 13:09:26 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-11-26 13:09:26 +0100 |
| commit | d3c735fadef2e74d9050bc7933fa884300f4d57c (patch) | |
| tree | a3cd5257024ae589deff0b22378d3cd7ee4c91c7 /threads.js | |
| parent | 1b05a11f14d6df63566c25494ff0389f0448d1f2 (diff) | |
| download | snap-yow-d3c735fadef2e74d9050bc7933fa884300f4d57c.tar.gz snap-yow-d3c735fadef2e74d9050bc7933fa884300f4d57c.zip | |
fixed #249 - preserve variable value types with edge cases
(empty string, Boolean false)
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |
