diff options
| author | jmoenig <jens@moenig.org> | 2014-06-05 17:16:27 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-06-05 17:16:27 +0200 |
| commit | 9f690fbfa393c2bc73ac4a8a479ae089161a7556 (patch) | |
| tree | 36a14f2c60e55834fabeb6f289a65c6c68182244 /threads.js | |
| parent | f80235ee43f21db5a4036ce0cdbea65cc821899b (diff) | |
| download | snap-byow-9f690fbfa393c2bc73ac4a8a479ae089161a7556.tar.gz snap-byow-9f690fbfa393c2bc73ac4a8a479ae089161a7556.zip | |
initialize new variables with zero (instead of null)
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-May-20'; +modules.threads = '2014-Jun-05'; var ThreadManager; var Process; @@ -3054,7 +3054,7 @@ VariableFrame.prototype.getVar = function (name, upvars) { VariableFrame.prototype.addVar = function (name, value) { this.vars[name] = (value === 0 ? 0 : value === false ? false - : value === '' ? '' : value || null); + : value === '' ? '' : value || 0); }; VariableFrame.prototype.deleteVar = function (name) { |
