Closed Bug 459766 Opened 16 years ago Closed 16 years ago

TM: we don't trace regexp.test

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

Details

(Whiteboard: [tmtest])

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
      No description provided.
Attachment #342967 - Flags: review?(mrbkap)
Assignee: general → gal
Attachment #342967 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #342969 - Flags: review?
Attachment #342967 - Flags: review?(mrbkap)
Comment on attachment 342969 [details] [diff] [review]
patch with mrbkap's input

>diff --git a/js/src/jsregexp.cpp b/js/src/jsregexp.cpp
>+jsint FASTCALL
>+js_Regexp_p_test(JSContext* cx, JSObject* regexp, JSString* str)
>+{
>+    jsval vp[3] = { JSVAL_NULL, OBJECT_TO_JSVAL(regexp), STRING_TO_JSVAL(str) };
>+    if (!regexp_exec_sub(cx, regexp, 1, vp + 2, JS_TRUE, vp))
>+        return -1;

Need to return JSVAL_TO_BOOLEAN(JSVAL_VOID) here.

r=mrbkap with that.
Attachment #342969 - Flags: review? → review+
http://hg.mozilla.org/tracemonkey/rev/3b894cc33338
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Flags: in-litmus-
Whiteboard: [tmtest]
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: