[pypy-commit] lang-js default: stubbed allert()

stepahn noreply at buildbot.pypy.org
Wed May 18 11:14:47 CEST 2011


Author: Stephan <stephan at stzal.com>
Branch: 
Changeset: r56:01ac3b7421fe
Date: 2011-05-12 11:23 +0200
http://bitbucket.org/pypy/lang-js/changeset/01ac3b7421fe/

Log:	stubbed allert()

diff --git a/js/interpreter.py b/js/interpreter.py
--- a/js/interpreter.py
+++ b/js/interpreter.py
@@ -189,6 +189,9 @@
     writer(",".join([i.ToString(ctx) for i in args]))
     return w_Undefined
 
+def noop(*args):
+    return w_Undefined
+
 def isnanjs(ctx, args, this):
     if len(args) < 1:
         return newbool(True)
@@ -889,6 +892,7 @@
         w_Global.Put(ctx, 'isNaN', W_Builtin(isnanjs))
         w_Global.Put(ctx, 'isFinite', W_Builtin(isfinitejs))
         w_Global.Put(ctx, 'print', W_Builtin(printjs))
+        w_Global.Put(ctx, 'alert', W_Builtin(noop))
         w_Global.Put(ctx, 'unescape', W_Builtin(unescapejs))
 
         w_Global.Put(ctx, 'this', w_Global)


More information about the pypy-commit mailing list