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

