Closed Bug 667129 Opened 10 years ago Closed 3 years ago

JSWatchPointHandler claims to take a void *, but actually takes a JSObject *

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 638054

People

(Reporter: jimb, Unassigned)

Details

The JSWatchPointHandler typedef, used by JS_SetWatchPoint and related functions, is a pointer to a function whose last argument, 'closure', is a 'void *'. However, the actual closure passed to JS_SetWatchPoint is a JSObject *, and the garbage collector treats it as such when it traces a watchpoint list.

The JSWatchPointHander's last argument should be changed to a 'JSObject *', to match its actual usage.
Assignee: general → nobody
watch() was removed in bug 638054.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 638054
You need to log in before you can comment on or make changes to this bug.