WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Let JSVAL_IS_OBJECT only check for objects, not null

Re: Let JSVAL_IS_OBJECT only check for objects, not null

by Tom Schuster :: Rate this Message:

| View in Thread

On Wed, May 9, 2012 at 3:36 PM, Blake Kaplan <mrbkap@...> wrote:
> On 05/05/2012 07:50 PM, Tom Schuster wrote:
>> So my question is how useful feasible is this?
>
> It seems to me like this is basically going to happen for "free" with
> the introduction of JS::Value (which already makes this distinction).
Probably not for free, because this is serious work to port over. And
some code might only be compilable in C mode?
> There are places in our tree right now where we depend on the current
> behavior and a change like this would introduce very subtle bugs.
Not a big deal, I already fixed this stuff in our tree. I was more
interested in how this would affect other embedders.
> ECMAScript 5 didn't make the typeof null -> "null" change for the same
> reason.
>
> -Blake
> _______________________________________________
> dev-tech-js-engine mailing list
> dev-tech-js-engine@...
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine

 « Return to Thread: Let JSVAL_IS_OBJECT only check for objects, not null