Skip to content

Looking for a more recent build of Spidermonkey 1.4.x #1

@dmatsumoto

Description

@dmatsumoto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions