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
0
votes
1 answer

Python, mongo + spider monkey

Ok, so this isn't exactly a question that I expect a full answer for but here goes... I am currently using a python driver to fire data at a mongo instance and all it well in the world. Now I want to be able to pull data from mongo and evaluate each…
Owen
  • 6,992
  • 7
  • 44
  • 77
0
votes
1 answer

SpiderMonkey REST request

I'm trying to use Mozilla SpiderMonkey to parse JSON files, and I can easily read JSON from a local file on my Linux using read(). Is there a way that I can read JSON files directly from a website? such as http://someDomain.com/myData.json If not,…
codeBarer
  • 2,238
  • 7
  • 44
  • 75
0
votes
1 answer

Why is Firefox Map slower than object as a map?

At least in this example, it seems the ECMAScript 6 Map is slower to retrieve than using an object. In Firefox, using the following code: map = {}; var i=1000000; console.time('populate'); while (i--) { map[i] = 'value of…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
0
votes
1 answer

fault in JS_DestroyContext after migrating js 1.7.0 to SpiderMonkey 24

I have a C++ application with several custom/native JavaScript objects that has been working fine on js 1.7.0 for years but in light of all the new features that have been added it was time to update to SpiderMonkey 24. I have built the new library…
mark
  • 5,269
  • 2
  • 21
  • 34
0
votes
2 answers

Template parameter is not allowed in an integral constant expression

When compiling this code (part of SpiderMonkey): template JS_ALWAYS_INLINE bool CallNonGenericMethod(JSContext *cx, CallArgs args) { const Value &thisv = args.thisv(); if (Test(thisv)) return…
rippeltippel
  • 369
  • 1
  • 7
  • 15
0
votes
1 answer

Linker error when compiling a program that uses spidermonkey

I've been trying to learn spidermonkey and so have written the following code, adapted from this guide and while the program compiles properly, I get the following error during linking: /usr/bin/ld: cannot open linker script file symverscript: No…
StAlRuth
  • 59
  • 6
0
votes
1 answer

Embed javascript code in spidermonkey in multithreaded application

I want to develop mutithreaded C++ code to embed javascript in it using spidermonkey, so it was supposed that when I was building spidermonkey source code, I should build it as thread safety "-DJS_THREADSAFE" OR if I didn't do that I can use it and…
sara
  • 256
  • 1
  • 3
  • 15
0
votes
1 answer

Loading and reading XML files in cocos2d-x 3.0 javascript scripts

How should one proceed to load XML content from a javascript script in cocos2d-x 3.0? I need to parse an XML file but DOMParser is unavailable: var text=""; text=text+"whatever blablabla"; text=text+""; var…
Coyote
  • 2,454
  • 26
  • 47
0
votes
4 answers

Avoid compilation overhead

I'm working on SpiderMonkey project, which is a large scale project with a lot of .h and .cpp files. Despite of I know I changed only file or two files, each time I make a change on the project, I have to run the make command and compile the whole…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
0
votes
1 answer

How to use packaged modules in a non-node JS environment?

With the exception of node API usage (fs, http, net...), vanilla js remains executable on any engine. Simple functionality can be relatively easily "plucked" from a packaged module (provided the licensing terms are met), but this gets messy for…
Oleg
  • 24,465
  • 8
  • 61
  • 91
0
votes
1 answer

javascript binding on wp8 and winrt

I am using spidermonkey https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey?redirectlocale=en-US&redirectslug=SpiderMonkey javascript binding on ios and android to develop game. Just wonder if it is possible to compile…
arachide
  • 8,006
  • 18
  • 71
  • 134
0
votes
0 answers

implementing Paper-machines without zotero through python?

How to externally link a code to paper machines(which is an add-on for zotero), to produce and store word clouds etc, without running actual zotero standalone/firefox add-on. I am completely new to Java and Python, so need guidance. I have done some…
0
votes
1 answer

assertion failures when garbage collecting

I'm embedding SpiderMonkey in an iOS app and am getting assertion failures when doing JS_GC and JS_MaybeGC. It happens more often when testing on my iPhone, but it happens in the simulator too. In particular, the assertion failure was: Assertion…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
0
votes
1 answer

In spidermoney,how to get page url

In spidermonkey,I want to get page URL in one string creating function.How to realize it?I don't know where is the spidermonkey forum site.Can someone tell me?Thanks!
user2507405
  • 27
  • 1
  • 4
0
votes
1 answer

What is JSRawObject and how do I get it from a JSObject *?

I'm embedding SpiderMonkey and am attempting to use JS_BindCallable. However, I have a JSObject * that I want to use as the newThis, yet the function takes a JSRawObject. The documentation on JSRawObject seems sparse and the header files haven't…
Claudiu
  • 224,032
  • 165
  • 485
  • 680