RootedBase should definitely be in JS these days. GCPolicy is still new and
might need a couple more methods on it, but we should still move it to JS
to signal that its' the way forward.

On Wed, Apr 20, 2016 at 11:37 AM, Jeff Walden <[email protected]> wrote:

> On 04/20/2016 06:41 AM, Ehsan Akhgari wrote:
> > About Unbox specifically, what are the methods that you're suggesting to
> > use?  For example thinking about BooleanObject, I can't find any other
> > public API that allows me to extract the boolean primitive inside it...
>
> Hypothetical future public APIs.  None exist yet.  (The API would be
> something like |bool JS::ExtractBooleanData(JSContext* cx,
> JS::Handle<JSObject*> obj, bool* value);| or so.  Alternatively, we could
> try to make it easier to call builtin JS functions somehow and let people
> use |Boolean.prototype.valueOf| instead.)
>
> Jeff
> _______________________________________________
> dev-tech-js-engine-internals mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
>
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to