Questions tagged [spidermonkey]

SpiderMonkey is Mozilla's JavaScript and WebAssembly Engine. A highly tailored version of which executes JavaScript & WebAssembly in the Firefox web browser.

SpiderMonkey is Mozilla's JavaScript & WebAssembly Engine. A highly tailored and polished-to-fit version of SpiderMonkey executes JavaScript & WebAssembly in the Firefox web browser. SpiderMonkey is also the first JavaScript engine ever made.

This virtual machine (VM) is implemented in C++, Rust and JavaScript and has support for Just-In-Time (JIT) compilation on several major platforms.

Resources


Related tags

318 questions
3
votes
1 answer

Is it possible to increase the recursion limit in SpiderMonkey?

I'm currently working on problems in Project Euler with JavaScript. For the most part I've been using for loops to iterate through the problems but wanted to use recursive functions. However, it seems that all of the JavaScript engines have limits…
Darren Newton
  • 2,847
  • 1
  • 29
  • 31
3
votes
0 answers

Recognizing JavaScript functions with GJS (Spidermonkey 1.7)

I am playing around Christian Hergert GtkBuilder + Inline JavaScript and I write a Glade plugin to edit JavaScript code. Here is an screenshot: (source: googlecode.com) I want to recognize the functions of an JavaScript with GJS (Spidermonker 1.7…
Juan Manuel
  • 311
  • 1
  • 11
3
votes
1 answer

DOM to use with SpiderMonkey?

I'm trying to use the GoogleMaps JavaScript library from inside of SpiderMonkey using the python wrapper, but I can't because of the lack of a DOM. Is there some way I can integrate a DOM into this so that I can get this to work?
DevDevDev
  • 5,107
  • 7
  • 55
  • 87
3
votes
2 answers

Is it possible to run IE9 or IE10 Chakra JS engine standalone?

I need to run some benchmark tests on different JS engines, need to measure timing, CPU and memory usage. I'd like to run my tests from the commandline. Found some solutions for V8 and SpiderMonkey, is there some way to do this with Chakra?
codercube
  • 31
  • 3
3
votes
1 answer

Is it more efficient to use a bunch of setTimeouts or a setInterval for refreshing a bunch of objects

Let's say there is a set of Watchers that need to be refreshed periodically. They each may have a different refresh interval. There may be several hundred such Watcher items at any given moment. The refresh time for any Watcher can range from a…
Erin
  • 1,848
  • 15
  • 26
3
votes
1 answer

Install PECL on windows 7

can someone in this universe give me the step by step to install PECL for windows on php server, so then i can use the SpiderMonkey js engine to run js within php code?
stackunderflow
  • 1,492
  • 1
  • 23
  • 53
2
votes
3 answers

Defining properties that can't be deleted?

If I do this in JSDB 1.8 which uses Spidermonkey 1.8: this.x = 3; var y = 4; function z() { return 77; } this.w = function w() { return 44; } this.v = function v() { return 55; } w = function w() { return 66; } function v() { return 77; } …
Jason S
  • 184,598
  • 164
  • 608
  • 970
2
votes
2 answers

Building SpiderMonkey with Android NDK toolchain

I am porting a game using SpiderMonkey to Android. Because I need to integrate with the game's existing build system, I have to build SpiderMonkey using the Android NDK standalone toolchain, not the ndk- build tool. Can anyone please tell me how…
Anders Feder
  • 595
  • 2
  • 5
  • 18
2
votes
1 answer

Threading in Spidermonkey

I am trying to enable a threaded debug dump in SpiderMonkey, by editing the jsinterp.cpp file. Basically, the things I am trying to do are as follows: Catch a JSScript before the main loop of Interpret() begins. Open a separate thread. In that…
Anton
  • 153
  • 2
  • 12
2
votes
2 answers

Javascript engine options for Android (non-WebKit)

We have created a HTML5 + Javascript application and would like to port it to Android. We already know WebKit is not capable to run the HTML5 app because Heterogenous Android codebase supports the latest HTML5 feats badly We use WebGL Complex HTML5…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
2
votes
2 answers

CouchDB - share functions across views, across design documents, across databases

Ok, here's the thing. I have a good JS background, had my share of JS in the past, and have lots of cool bare-bones tools I take with me from project to project that act like a library. I'm trying to formulate work with CouchDB. Now, after getting…
Radagast the Brown
  • 3,156
  • 3
  • 27
  • 40
2
votes
1 answer

V8 (or other JS engine) BigInt Implementation - Displaying as Decimal

I'm wondering if someone might be able to explain a specific aspect of the JavaScript BigInt implementation to me. The overview implementation I understand - rather than operating in base 10, build an array representing digits effectively operating…
JMA
  • 334
  • 1
  • 9
2
votes
2 answers

E4X filtering in Spidermonkey

I'm using E4X in SpiderMonkey, and the majority of the language seems pretty solid, but I can't get filtering to work: var xml = Dave Ian John trace(…
Dave Stewart
  • 2,324
  • 2
  • 22
  • 24
2
votes
2 answers

JS_malloc vs malloc

Is JS_malloc only used to allocate memory for javascript types in Spidermonkey? If I need to allocate memory for a third-party datatype (not a JSObject or similar), is it ok to use malloc? What are the differences between JS_malloc and C malloc?
Mad Rapper X
  • 311
  • 4
  • 16
2
votes
1 answer

read() in Spidermonkey with unicode

In the Spidermonkey shell, reading in a file with the read() function ignores the encoding of the file. Is there any way to read in a UTF-8 or other multi-byte encoded file and preserve the multi-byte characters? Spidermonkey is such a little devil.
mattbasta
  • 13,492
  • 9
  • 47
  • 68