Although patching SpiderMonkey is easy/safe? on this case, carrying this tiny update from one version to another may not be the best option;
A public method suggestion; JS_PUBLIC_API(bool) JS_IsRegExpObject(JSObject *obj) { return obj->is<RegExpObject>(); } ** I'm not sure the best method name here. (or JS::HandleObject as a parameter, additional checks etc.). Any one of them would work. _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals