summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-07-09 21:10:16 +0200
committerjmoenig <jens@moenig.org>2013-07-09 21:10:16 +0200
commit167a175d181dcfa7b20e453178425d3e0021db8f (patch)
tree533da63961c1fa02747c7a02b19c5a0f4a3a9ce7 /threads.js
parent09fb8f7f822b378f6ca6c20e6c7c7bcbcd208180 (diff)
downloadsnap-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.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/threads.js b/threads.js
index ab904ad..5aea6ec 100644
--- a/threads.js
+++ b/threads.js
@@ -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) {