Closed Bug 641078 Opened 13 years ago Closed 13 years ago

dehydra jsapi update: remove JSScript and callable regex

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehren.m, Assigned: ehren.m)

Details

Attachments

(1 file, 1 obsolete file)

2.67 KB, patch
taras.mozilla
: review+
Details | Diff | Splinter Review
Attached patch patch (obsolete) — Splinter Review
tested w/ mc, tm and 1.8.0
Attachment #518799 - Flags: review?(tglek)
Comment on attachment 518799 [details] [diff] [review]
patch


>+/* JSScript removed from JSAPI in newer SpiderMonkeys */
>+#ifndef JS_NewScriptObject
>+#define JS_NewScriptObject(cx, script) (script)
>+#define JSScript JSObject
>+#endif

Just remove JS_Script* from source
Attachment #518799 - Flags: review?(tglek) → review-
> Just remove JS_Script* from source

I took the fix from http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/78ec91ce03319d3a?tvc=2

context:

  JSScript *script = JS_CompileScript(this->cx, namespace,
                                      content, size, realname, 1);
  free(realname);
  if (script == NULL) {
    xassert(JS_IsExceptionPending(this->cx));
    return JS_FALSE;
  }

  JSObject *sobj = JS_NewScriptObject(this->cx, script);
  JS_AddNamedObjectRoot(this->cx, &sobj, filename);
  jsval rval;
  JSBool rv = JS_ExecuteScript(this->cx, namespace, script, &rval);
  JS_RemoveObjectRoot(this->cx, &sobj);

Old sm still expects a JSScript for JS_CompileScript and JS_ExecuteScript or are you saying drop old spidermonkey? :)
yes, drop preff4 spidermonkey
Attached patch patchSplinter Review
only tested on mc tip but jsapi should be same as branch
Attachment #518799 - Attachment is obsolete: true
Attachment #518827 - Flags: review?(tglek)
Comment on attachment 518827 [details] [diff] [review]
patch

thanks
Attachment #518827 - Flags: review?(tglek) → review+
np, http://hg.mozilla.org/rewriting-and-analysis/dehydra/rev/9871caaedb8f
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: