Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JS_GetPropertyDescArray

5 views
Skip to first unread message

BKimman

unread,
Jun 2, 2006, 2:24:17 AM6/2/06
to
The function JS_GetPropertyDescArray in jsdbgapi.c contains

n = scope->entryCount;
if (n > scope->map.nslots)
n = scope->map.nslots;

(http://lxr.mozilla.org/mozilla/source/js/src/jsdbgapi.c#1091)

This limits the array size returned to 48 (the value of
scope->map.nslots). Is there a reason for this limitation? I bypassed
this check, and the code seems to work fine.

The context of usage : while analysing the ParseNode tree of
http://www.jslint.com/fulljslint.js - a function has 71 local variables
(which is the value obtained in scope->entryCount).

Am using JS_GetPropertyDescArray to obtain the array of properties for
a function object : due to the above conditional check, only 48 are
being returned.

Kimman

0 new messages