My immediate use-case: I want my release binary to be able to use JS_SetGCZeal iff it's present in the js library I happen to have loaded. There are probably other use-cases when embeddings need to safely feature-detect, such as when an application and a libmozjs.so are shipped separately, as is often the case with OS distro package schemes. This feature could be expanded to those cases. Features on my list for immediate test-ability: JSFEATURE_GC_ZEAL JSFEATURE_DEBUG JSFEATURE_THREADSAFE JSFEATURE_JIT
You need to log in before you can comment on or make changes to this bug.