Closed Bug 556350 Opened 14 years ago Closed 8 months ago

Add JS_HasFeature API

Categories

(Core :: JavaScript Engine, enhancement)

1.9.2 Branch
enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: wes, Unassigned)

Details

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
Assignee: general → nobody
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.