#572793 [gjs] GLib.printf is not found

Package:
gjs
Source:
gjs
Description:
Mozilla-based javascript bindings for the GNOME platform (cli tool)
Submitter:
Simon Wenner
Date:
2010-03-06 17:54:04 UTC
Severity:
normal
#572793#5
Date:
2010-03-06 17:46:34 UTC
From:
To:
GLib.printf is not found

Example code:

const GLib = imports.gi.GLib;
GLib.printf("test");

Output:
    JS ERROR: !!!   Exception was: Error: No symbol 'printf' in
namespace 'GLib'

But this function does exist if you look at: /usr/share/gir-1.0/GLib-2.0.gir
Debian Release: squeeze/sid
900 testing security.debian.org
900 testing mirror.switch.ch
800 unstable mirror.switch.ch
700 experimental mirror.switch.ch
--- Package information. ---
Depends (Version) | Installed
==============================-+-==============
libc6 (>= 2.2.5) | 2.10.2-6
libgjs0 | 0.4-4
libglib2.0-0 (>= 2.12.0) | 2.22.4-1
libmozjs2d (>= 1.9.1) | 1.9.1.6-1
libnspr4-0d (>= 1.8.0.10) | 4.8.3-1


Package's Recommends field is empty.

Package's Suggests field is empty.