historic-spidermonkey-source-code / javascript-1.4.2 Goto Github PK
View Code? Open in Web Editor NEWJavaScript 1.4.2
JavaScript 1.4.2
I realize I'm asking about a very old build of Spidermonkey, but I'm currently in debugging misery and am looking for contingency plans.
I'm currently debugging an application that crashes in js32.dll, so I decided I should try to recompile that app with the Spidermonkey source. The problem is that I don't know what version of Spidermonkey was used, because the version info was never compiled into the DLL.
Through trial and error, I determined that v1.4.2 works with minor changes, while v1.5 is so different that I don't want to go down the road of trying to make it compatible with the application.
The problem is that the following replace call doesn't work:
replace(/^\s+|\s+$/g,"")
It replaces the leading whitespace, but not the trailing whitespace.
It's possible that an older version of Spidermonkey doesn't have this issue, but at the moment, 1.4.1 and 1.4.2 are the only sources I've been able to locate in the mozilla archives. I'm currently debugging the regexp code in jsregexp.c and am starting to understand how it works, but I'm sure there's a potential for me to make errors.
Anyhow, I'm just posting here, hoping that someone might see it and be able to point me to a version of Spidermonkey that has this regexp problem fixed.
The current application as built doesn't exhibit this bug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.