Subj : Re: Another JS question To : netscape.public.mozilla.jseng From : Sterling Bates Date : Wed May 05 2004 01:42 am "Brendan Eich" wrote in message news:409882B9.1060103@meer.net... > Sterling Bates wrote: > > 1. If v is null or undefined, JS_ValueToObject assigns NULL to *objp and > > returns JS_TRUE. This is a known departure from the ECMA 262-3 > > specification, which was written after SpiderMonkey. > > Can't depart ahead of the birth of the spec from which the API departed, > so I would say "known difference". OK, how about this: "If v is null or undefined, JS_ValueToObject assigns NULL to *objp and returns JS_TRUE. This is a known difference between SpiderMonkey and the ECMA 262-3 specification. However, since this API predates the ECMA spec, the process is maintained for compatibility purposes." Sterling .