1. Pypy
  2. Untitled project
  3. lang-js

Commits

stepahn  committed 37fc41e

fix for translation

  • Participants
  • Parent commits 89e0b23
  • Branches default

Comments (0)

Files changed (1)

File js/interpreter.py

View file
         return create_object(ctx, 'Date', Value = W_FloatNumber(0.0))
 
 def pypy_repr(ctx, args, this):
-    return W_String(args[0].__class__.__name__)
+    return W_String(str(args[0]))
 
 def put_values(ctx, obj, dictvalues):
     for key,value in dictvalues.iteritems():