Re: GJS API changes



On Wed, Nov 16, 2016 at 7:18 PM Christian Hergert <christian hergert me> wrote:
On 11/16/2016 07:06 PM, philip chimento gmail com wrote:
> Yes, that worked, thanks for the great suggestion! There is no ordering
> problem (unless someone felt the need to create a GjsContext in a
> different static constructor...)

It is not safe to create things like that from a static constructor.
There is no guaranteed ordering in static constructors.

Yes, it would be a bad idea and I don't think it should be supported. Initializing SpiderMonkey from a static constructor should be fine, though.

Philip


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]