Re: [JS-internals] js/JS namespace

2016-04-21 Thread Terrence Cole
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 wrote: > On 04/20/2016 06:41 AM, Ehsan Akhgari wrote: > > About

Re: [JS-internals] js/JS namespace

2016-04-20 Thread Jeff Walden
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

Re: [JS-internals] js/JS namespace

2016-04-20 Thread Ehsan Akhgari
On 2016-04-19 11:48 PM, Jeff Walden wrote: > On 04/19/2016 08:37 PM, Ehsan Akhgari wrote: >> As far as I understand, the js namespace is used internally in >> SpiderMonkey, and the JS namespace contains the public API symbols. >> However, I occasionally come across things in the public headers in >

Re: [JS-internals] js/JS namespace

2016-04-19 Thread Jeff Walden
On 04/19/2016 08:37 PM, Ehsan Akhgari wrote: > As far as I understand, the js namespace is used internally in > SpiderMonkey, and the JS namespace contains the public API symbols. > However, I occasionally come across things in the public headers in > namespace js that I need to use. Examples incl

[JS-internals] js/JS namespace

2016-04-19 Thread Ehsan Akhgari
As far as I understand, the js namespace is used internally in SpiderMonkey, and the JS namespace contains the public API symbols. However, I occasionally come across things in the public headers in namespace js that I need to use. Examples include js::GCPolicy, js::RootedBase, js::GetBuiltinClass