Skip to content
An embeddable Javascript interpreter in C.
Branch: master
Clone or download
ccxvii Set 'lightweight' and 'arguments' during compile pass.
Avoid doing a separate analysis pass by using the same bytecode for both
lightweight and non-lightweight functions.
Latest commit bb65f18 Nov 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
.gitattributes
.gitignore Makefile tweaks. Mar 12, 2014
AUTHORS
COPYING
Makefile Fix Makefile install derps Mar 8, 2019
README
astnames.h
jsarray.c
jsboolean.c
jsbuiltin.c Move js_Buffer to jsi.h and fix some potential leaks. Jul 5, 2017
jsbuiltin.h Move js_Buffer to jsi.h and fix some potential leaks. Jul 5, 2017
jscompile.c
jscompile.h Set 'lightweight' and 'arguments' during compile pass. Mar 22, 2019
jsdate.c Issue 95: Improve error message when trying to call a non-callable. Mar 18, 2019
jsdtoa.c
jsdump.c Set 'lightweight' and 'arguments' during compile pass. Mar 22, 2019
jserror.c Make Error.prototype.toString conform to the spec. Apr 20, 2017
jsfunction.c Add repr() function to shell, and use it in the REPL. Mar 22, 2019
jsgc.c Fix 699557: Pause garbage collector during Ap_sort. Jul 25, 2018
jsi.h Set appropriate internal class property of arguments object. Mar 18, 2019
jsintern.c
jslex.c
jslex.h Clean up for one.c compilation. Feb 11, 2014
jsmath.c
jsnumber.c
jsobject.c Set appropriate internal class property of arguments object. Mar 18, 2019
json.c Fix stack management error in JSON.stringify. Apr 21, 2017
jsparse.c
jsparse.h
jsproperty.c Handle null/undefined in OP_NEXTITER rather than creating empty itera… Jan 7, 2019
jsregexp.c Fix creation of empty regular expressions. May 3, 2018
jsrepr.c Set 'lightweight' and 'arguments' during compile pass. Mar 22, 2019
jsrun.c Set 'lightweight' and 'arguments' during compile pass. Mar 22, 2019
jsrun.h Split header into js.h public and jsi.h private. Start cleaning up Jan 20, 2014
jsstate.c Show system error message in js_loadfile. Sep 4, 2018
jsstring.c Fix gcc compiler warnings about switch fallthroughs. Sep 11, 2018
jsvalue.c Set appropriate internal class property of arguments object. Mar 18, 2019
jsvalue.h
main.c
mujs.h
one.c
opnames.h
pp.c Add pretty-printing command line tool. Apr 23, 2018
regexp.c Bug 700429: Limit size of input regular expression program. Jan 2, 2019
regexp.h Reduce minimum stack use in regexec by using recursive implementation. Aug 15, 2017
utf.c Avoid using 'unsigned int'. Apr 27, 2016
utf.h
utftype.c

README

MuJS: an embeddable Javascript interpreter in C.

ABOUT

MuJS is a lightweight Javascript interpreter designed for embedding in
other software to extend them with scripting capabilities.

LICENSE

MuJS is Copyright 2013-2017 Artifex Software, Inc.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

The software is provided "as is" and the author disclaims all warranties with
regard to this software including all implied warranties of merchantability
and fitness. In no event shall the author be liable for any special, direct,
indirect, or consequential damages or any damages whatsoever resulting from
loss of use, data or profits, whether in an action of contract, negligence
or other tortious action, arising out of or in connection with the use or
performance of this software.

COMPILING

If you are building from source you can either use the provided Unix Makefile:

	make release

Or compile the source with your preferred compiler:

	cc -O2 -c one.c -o libmujs.o

INSTALLING

To install the MuJS command line interpreter, static library and header file:

	make prefix=/usr/local install

DOWNLOAD

The latest development source is available directly from the git repository:

	git clone http://git.ghostscript.com/mujs.git

REPORTING BUGS AND PROBLEMS

Report bugs on the ghostscript bugzilla, with MuJS as the selected component.

	http://bugs.ghostscript.com/

The MuJS developers hang out on IRC in the #mupdf channel on irc.freenode.net.
You can’t perform that action at this time.