OS4 DepotLogo by Kicko 
(anonymous IP:,874) 

   Bug tracker
   Locale browser

   o Audio (320)
   o Datatype (47)
   o Demo (177)
   o Development (496)
      o Cross (35)
      o Debug (8)
      o Edit (5)
      o Example (31)
      o Game (20)
      o Guitool (5)
      o Ide (6)
      o Install (0)
      o Language (35)
      o Library (245)
      o Misc (29)
      o Utility (77)
      o Webtool (0)
   o Document (20)
   o Driver (85)
   o Emulation (134)
   o Game (817)
   o Graphics (433)
   o Library (81)
   o Network (190)
   o Office (52)
   o Utility (756)
   o Video (58)

Total files: 3666

Full index file. Download
Recent index file. Download



Support the site

 Readme for:  Development » Language » spidermonkey-js-bin.lha


Description: Mozilla Javascript interpreter
Download: spidermonkey-js-bin.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 337kb
Version: 1.5-1
Date: 17 Dec 06
Author: Mozilla Funcdation, Tim Johnson (68k version) and Alexandre Balaban (OS4 version)
Submitter: Alexandre Balaban
Email: alexandre/balaban fr
Homepage: http://www.balaban.fr
Category: development/language
License: MPL
Distribute: yes
Min OS Version: 4.0
FileID: 2401
Comments: 1
Snapshots: 0
Downloads: 194  (Current version)
194  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show content Show crashlogs Replace file 
Short:        Mozilla JavaScript interpreter for CLI
Author:       mozilla.org (The Mozilla Foundation)
Uploader:     alexandre()balaban.fr (Alexandre Balaban)
Type:         dev/lang
Version:      1.5-1
Architecture: ppc-amigaos >= 4.0.0
Distribution: Aminet

This is my port of Mozilla's open-source "SpiderMonkey" JavaScript
interpreter.  In the archive is an executable called "js" which can
be run interactively or as a command to execute JavaScript files.
Also included is the general README.html from the original SpiderMonkey

SpiderMonkey is generally intended to be used as a shared library and
embedded in other applications, but it comes with a command-line 
interpreter for testing and learning.  That is what is included here.

Example (interactive):
    6.Fad:Dev/js/src> js
    js> myDate = new Date();
    Wed Nov 22 2006 11:55:31 GMT+0000
    js> myDate.toLocaleString();
    Wed Nov 22 11:55:31 2006
    js> quit()

Example (command):
    6.Fad:Dev/js/src> js myfile.js
	 (or, to include some startup code before running myfile:)
    6.Fad:Dev/js/src> js -f shell.js myfile.js

It would be entirely possible to create a javascript.library using the
SpiderMonkey source code, offering a JavaScript interpreter to any 
Amiga application.  I am not enough of a guru to do this yet. :)  If
a knowledgable someone would like to work on this, please contact me.
The source code should be on Aminet to accompany this binary.

"Features" of this Amiga version (17 Dec 2006):
    - currently no file support
    - currently no support for passing arguments using Workbench
          (recommended to run from CLI)
    - compiled for 68020+FPU using SAS/C 6.58
          (non-FPU binary might be possible)
    - compiled for PPC Amiga OS4 using SDK v51.22
    - requires a stack size >= 50000, but I have not inserted the code
          to enforce this and have not turned off SAS/C's stack checking
          (but have not enabled automatic stack growth, either)
    - passes all the same ECMA JavaScript tests on Amiga as it does
          on other platforms, with a few very minor exceptions
          (MAX_FLOAT is a tiny bit smaller, and a call to Date()
              might not have the same second as the next call to
              Date(), but this makes sense and is no problem)
    - tested on A4000T/060-50/64mb/OS 3.5 and A1200/030/8mb/OS 3.0
    - tested on A1XE/G4-800/512mb/OS4upd4

Notes (17 Dec 2006):
    - the 68k part did not evolve since the 22 Nov 2006.

Notes (22 Nov 2006):
    - to quit, enter "quit()" and press return
    - build instructions for my dumb build system are in the
          readme included with the source code package, in case
          you want to compile this yourself

References (22 Nov 2006):
    Mozilla's JavaScript projects:

    SpiderMonkey JavaScript:

    SpiderMonkey command-line interpreter:

File Version Size Date OS Dls Readme
spidermonkey-js-src.lha1.5-21Mb17 Dec 064.0122¤ Spidermonkey-js-src - Mozilla Javascript interpreter - sources
Copyright (c) 2004-2015 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment