Closed Bug 108369 Opened 23 years ago Closed 21 years ago

JSObject.call() fails assertion when called with zero arguments

Categories

(Core Graveyard :: Java: Live Connect, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 137193

People

(Reporter: tjw, Assigned: beard)

Details

Attachments

(1 file)

If the native code for JSObject.call() gets called with zero arguments, then 
(at least under Java on Mac OS X -- this could be a bug on other platforms 
too) the argument array is a zero lenght array (instead of a null array).

This means that it will try to call JS_malloc asking for zero bytes which 
causes an assertion.
Attached patch Suggested patchSplinter Review
Keywords: patch, review
Formally confirming; reassigning to Patrick for consideration of this patch.
Assignee: rogerl → beard
Status: UNCONFIRMED → NEW
Ever confirmed: true

*** This bug has been marked as a duplicate of 137193 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: