]> gitweb.factorcode.org Git - factor.git/commitdiff
fjsc: display the proper namespace when using set_in.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 24 Aug 2011 22:20:51 +0000 (15:20 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 24 Aug 2011 22:20:51 +0000 (15:20 -0700)
extra/fjsc/resources/bootstrap.js

index 795ab7496e4fa45716c7438601a0d06454fcecbf..31065c9f3174ba880266700cee1d2feff9140ba8 100644 (file)
@@ -127,9 +127,14 @@ Factor.prototype.using = function(v, next) {
   factor.get_word("kernel", "using").execute(next);
 }
 
+var fjsc_repl = false;
+
 Factor.prototype.set_in = function(v, next) {
   factor.cont.data_stack.push(v);
   factor.get_word("kernel", "set-in").execute(next);
+  if (fjsc_repl) {
+    fjsc_repl.ps = '( ' + v + ' )';
+  }
 }
 
 Factor.prototype.get_word = function(vocab,name) {