On Sun, 2013-10-06 at 15:33 -0700, Sarvi Shanmugham wrote:
> 
> The activity level seems to have gone way down. 
> Most of the Demo sections seem to unusable. 
> I was trying to convince a friend that Pyjamas is a good tool to use
> for web development, tried to show of the demos which fell flat.
> Ended up looking the fool.:-(
> 
> 
> I came back home and tried out the demo and realized there is a bug
> that has been filed 
> https://github.com/pyjs/pyjs/issues/800
> 

Just to be sure. You tested with chromium for windows?

I think we hit a bug in chromium for windows here (linux version is OK).

The helloworld example throws an maximum call stack size exceeded,
unless the patch below is applied. It just adds a debugger statement,
which should have no effect...


diff --git a/pyjs/src/pyjs/builtin/pyjslib.py b/pyjs/src/pyjs/builtin/pyjslib.py
index f1ba055..0825a79 100644
--- a/pyjs/src/pyjs/builtin/pyjslib.py
+++ b/pyjs/src/pyjs/builtin/pyjslib.py
@@ -2089,7 +2089,12 @@ var $radix_regex = [
             }
             radix = null;
         }
-        if (typeof this != 'object' || this['__number__'] != 0x02) return new 
$int(value, radix);
+        if (typeof this != 'object' || this['__number__'] != 0x02) {
+            // The debugger statement seems to be needed for chromium
+            // for windows...
+            debugger;
+            return new $int(value, radix);
+        }
         if (value['__number__']) {
             if (radix !== null) throw @{{TypeError}}("int() can't convert 
non-string with explicit base");
             v = value['valueOf']();


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to