Closed Bug 1321915 Opened 9 years ago Closed 9 years ago

putstr is not defined.

Categories

(Developer Documentation Graveyard :: General, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lbs1203940926, Unassigned)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details I've installed SpiderMonkey in my OS(Ubuntu 16.04 x64). When I use it, I can use print() method correctly.But when I use putstr() method, I come across an error: putstr() is not defined. How to solve the problem? Thank you.
if you refer this page https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Shell_global_objects the page contains obsolete information I'll update it.
apparently putstr is still there. Can you describe how you installed SpiderMonkey, and how you run it?
(In reply to Tooru Fujisawa [:arai] from comment #2) > apparently putstr is still there. > > Can you describe how you installed SpiderMonkey, and how you run it? Install: ``` cd ProgramFiles wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz -O- | tar xvz cd js/src make -f Makefile.ref mkdir -p /usr/include/smjs/ -v cp *.{h,tbl} /usr/include/smjs/ -v cd Linux_All_DBG.OBJ cp *.h /usr/include/smjs/ -v mkdir -p /usr/local/{bin,lib}/ -v cp js /usr/local/bin/ -v cp libjs.so /usr/local/lib/ -v ``` Usage: Just change directroy to /usr/local/lib/ and type `js` to enter the jsShell. Then I type `print("OK")`, it works well. Then, I type `putstr("Are you OK ?")`, the shell gives me an error: `putstr is not defined`.
SpiderMonkey 1.7.0 is too old. Current latest version of SpiderMonkey release is SpiderMonkey 45 https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/45 and I'm now updating the document for trunk (that is 53). you could check what functions are available by executing "help()" in js shell, if help function exists at that point. anyway, there's nothing we can do for 1.7.0. I'd suggest using newer version if possible.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
(In reply to Tooru Fujisawa [:arai] from comment #4) > SpiderMonkey 1.7.0 is too old. > Current latest version of SpiderMonkey release is SpiderMonkey 45 > > https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/ > Releases/45 > and I'm now updating the document for trunk (that is 53). > > you could check what functions are available by executing "help()" in js > shell, if help function exists at that point. > > anyway, there's nothing we can do for 1.7.0. > I'd suggest using newer version if possible. Thank you very much! I'll update my version now. Thank you.
You need to log in before you can comment on or make changes to this bug.