diff options
| author | jmoenig <jens@moenig.org> | 2013-07-09 21:10:16 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-07-09 21:10:16 +0200 |
| commit | 167a175d181dcfa7b20e453178425d3e0021db8f (patch) | |
| tree | 533da63961c1fa02747c7a02b19c5a0f4a3a9ce7 /threads.js | |
| parent | 09fb8f7f822b378f6ca6c20e6c7c7bcbcd208180 (diff) | |
| download | snap-167a175d181dcfa7b20e453178425d3e0021db8f.tar.gz snap-167a175d181dcfa7b20e453178425d3e0021db8f.zip | |
Codification changes, Boolean slot bug fix
* Collapsed codification primitives (code, header) into a single block
* Added isEmptySlot() to BooleanArgMorph (thanks, Brian, for the bug
report!)
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -83,7 +83,7 @@ ArgLabelMorph, localize*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2013-July-04'; +modules.threads = '2013-July-09'; var ThreadManager; var Process; @@ -2291,6 +2291,18 @@ Process.prototype.reportTimer = function () { blocks - not needed to run or debug Snap */ +Process.prototype.doMapCodeOrHeader = function (aContext, anOption, aString) { + if (this.inputOption(anOption) === 'code') { + return this.doMapCode(aContext, aString); + } + if (this.inputOption(anOption) === 'header') { + return this.doMapHeader(aContext, aString); + } + throw new Error( + ' \'' + anOption + '\'\nis not a valid option' + ); +}; + Process.prototype.doMapHeader = function (aContext, aString) { if (aContext instanceof Context) { if (aContext.expression instanceof SyntaxElementMorph) { |
