Anthony Catel <
a.catel@...> wrote:
> Line 9 is printed. How can that be possible ? Even if json_obj is not an
> object JS_ConvertArguments returns JS_TRUE and leaves json_obj unchanged.
null is an object (i.e. typeof null returns "object"). It's one of those
surprising gotchas that you have to be careful of. If you don't want to allow
null, you'll have to filter it out after the JS_ConvertArguments call.
--
Blake Kaplan
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine