Search completed in 1.18 seconds.
22 results for "setversion":
Your results are loading. Please wait...
JS_SetVersion
Obsolete since JSAPI 25This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. Configure a JSContext to use a specific version of the JavaScript language. Syntax JSVersion JS_SetVersion(JSContext *cx, JSVersion version); Name Type Description cx JSContext * Pointer to a JS context from which to derive runtime information. ...
...Try to avoid using it. Configure a JSContext to use a specific version of the JavaScript language. Syntax JSVersion JS_SetVersion(JSContext *cx, JSVersion version); Name Type Description cx JSContext * Pointer to a JS context from which to derive runtime information. version JSVersion Version of JavaScript to set context to. Description JS_SetVersion attempts to set the version of JavaScript to version for a specified executable script context, cx. The version comes from the JSVersion enumerated type. JS_SetVersion returns the JS version in effect for the context before you changed it. ...
... runtime information. version JSVersion Version of JavaScript to set context to. Description JS_SetVersion attempts to set the version of JavaScript to version for a specified executable script context, cx. The version comes from the JSVersion enumerated type. JS_SetVersion returns the JS version in effect for the context before you changed it. ...
JS_SetVersionForCompartment
This article covers features introduced in SpiderMonkey 31 Configure a JSCompartment to use a specific version of the JavaScript language. Syntax void JS_SetVersionForCompartment(JSCompartment *compartment, JSVersion version); Name Type Description compartment JSCompartment * Pointer to a JS compartment. version JSVersion Version of JavaScript to set compartment to. Description JS_SetVersionForCompartment attempts to set the version of JavaScript to version for a specified compartment, compartment. ...
...ype Description compartment JSCompartment * Pointer to a JS compartment. version JSVersion Version of JavaScript to set compartment to. Description JS_SetVersionForCompartment attempts to set the version of JavaScript to version for a specified compartment, compartment. ...
IDBVersionChangeRequest.setVersion() - Web APIs
The IDBVersionChangeRequest.setVersion method updates the version of the database, returning immediately and running a versionchange transaction on the connected database in a separate thread. For older WebKit browsers, call this method before creating or deleting an object store. Warning: The latest draft of the specification has dropped this method. Some not up-to-date browsers still implement this method. The new way is to define the version in the IDBDatabase.open() method and create and delete object stores in the onupgradeneeded event handler associated with the returned request. Syntax IDBVersionChangeRequest setVersion ([TreatNullAs=EmptyString] in DOMString version); Example TBD Parameters version The version to store in the database. Returns IDBVersionChangeRequest Th...
...n of a database. Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
IDBVersionChangeRequest - Web APIs
Returns immediately and runs a versionchange transaction on the connected database in a separate thread. ...
...Returns immediately and runs a versionchange transaction on the connected database in a separate thread. ...
...e for version details. The new way to do it is to use the IDBOpenDBRequest interface which has now the onblocked handler and the newly needed onupgradeneeded one. The IDBVersionChangeRequest interface the IndexedDB API represents a request to change the version of a database. It is used only by the setVersion() method of IDBDatabase. Methods Inherits from: IDBRequest IDBVersionChangeRequest.setVersion Updates the version of the database. Returns immediately and runs a versionchange transaction on the connected database in a separate thread. Attributes Attribute Type Description onblocked Function The event handler for the blocked event. Browser compatibility The compatibility table on this page is generated from structured data. If you'd like to ...
... NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support NosetVersion DeprecatedNon-standardChrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support ...
Index
nkey Set the quota on the number of bytes that stack-like data structures can use when the runtime compiles and executes scripts. These structures also consume heap space, so JS_SetThreadStackLimit does not bound their size. The default quota is 32MB which is quite generous. ...
...data structures can use when the runtime compiles and executes scripts. These structures also consume heap space, so JS_SetThreadStackLimit does not bound their size. The default quota is 32MB which is quite generous. 477 JS_SetThreadStackLimit JSAPI Reference, Obsolete, SpiderMonkey No summary! 478 JS_SetVersion JSAPI Reference, Obsolete, SpiderMonkey JS_SetVersion attempts to set the version of JavaScript to version for a specified executable script context, cx. The version comes from the JSVersion enumerated type. 479 JS_SetVersionForCompartment JSAPI Reference, Reference, Reference(2), SpiderMonkey JS_SetVersionForCompartment attempts to set the version of JavaScript to version for a specified compartment, compartment. The version co...
JS::CompileOptions
ed to duplicate. OwningCompileOptions &setLine(unsigned l) Sets each property and returns the instance itself. ...
...ions &setLine(unsigned l) CompileOptions &setFileAndLine(const char *f, unsigned l) CompileOptions &setSourceMapURL(const char16_t *s) CompileOptions &setElement(JSObject *e) CompileOptions &setElementAttributeName(JSString *p) CompileOptions &setIntroductionScript(JSScript *s) CompileOptions &setMutedErrors(bool mute) CompileOptions &setVersion(JSVersion v) CompileOptions &setUTF8(bool u) CompileOptions &setColumn(unsigned c) CompileOptions &setCompileAndGo(bool cng) CompileOptions &setForEval(bool eval) CompileOptions &setNoScriptRval(bool nsr) CompileOptions &setSelfHostingMode(bool shm) CompileOptions &setCanLazilyParse(bool clp) CompileOptions &setSourceIsLazy(b...
JSVersion
Description The JSVersion enumerated type includes the following values. Each version has a name, which is a string used by JS_StringToVersion and JS_VersionToString. ...
... JSVERSION_ECMA_5 185 ECMA 262 Edition 5 "ECMAv5" JSVERSION_DEFAULT 0 Latest JavaScript version, but omitting web-incompatible extensions "default" JSVERSION_UNKNOWN -1 Unknown JavaScript version NULL JSVERSION_LATEST JSVERSION_ECMA_5 Latest JavaScript version NULL See Also MXR ID Search for JSVersion JS_GetVersion JS_SetVersion JS_StringToVersion JS_VersionToString bug 824312 ...
JS_GetVersion
context to query. Description JS_GetVersion returns the JavaScript version currently used by the given JSContext, cx. ...
...the given JSContext, cx. The result is one of the JSVersion constants. When a context is created, its version is initially JSVERSION_DEFAULT. ...
IDBDatabaseSync - Web APIs
name readonly DOMString The name of the conn...
...void removeObjectStore ( in DOMString storeName ) raises (IDBDatabaseException); Parameters storeName The name of an existing object store to remove. Returns void Exceptions This method can raise an IDBDatabaseException with the following code: NOT_FOUND_ERR If the object store with the given name (based on case-sensitive comparison) does not exist in the connected database. setVersion() Sets the version of the connected database. void setVersion ( in DOMString version ); Parameters Returns void version The version to store in the database. transaction() Creates and returns a transaction, acquiring locks on the given database objects, within the specified timeout duration, if possible. IDBTransactionSync transaction ( in optional DOMStringList storeNames, in...
Using JavaScript Generators in Firefox - Archive of obsolete content
re all done we can close the generator, but that must happen outside // of the generator so we use a timeout. function closeGenerator() { setTimeout(function() { generator.close(); }, 0); } // Our main steps function databaseOperation() { mozIndexedDB.open("MyTestDatabase").onsuccess = grabEvent; var event = yield; var db = event.target.result; if (db.version != "1.0") { db.setVersion("1.0").onsuccess = grabEvent; event = yield; var transaction = event.transaction; db.createObjectStore("stuff"); transaction.oncomplete = grabEvent; yield; } db.transaction(["stuff"]).objectStore("stuff").get("foo").onsuccess = grabEvent; event = yield; alert("Got result: " + event.target.result); // We're all done. closeGenerator(); // Always have an extra...
JSAPI User Guide
. (This is a mere nicety if the process is about to exit anyway. But as that is not always the case, calling JS_Shutdown is a good habit to get into.) The context: Use JS_NewContext and JS_DestroyContext. For maximum ECMAScript standard compliance, applications should also use JS_SetOptions to enable JSOPTION_VAROBJFIX. To get the latest JavaScript language features, applications may use JS_SetVersion. Error reporting is also per-context and is enabled using JS_SetErrorReporter. The global object: To create this object, you first need a JSClass with the JSCLASS_GLOBAL_FLAGS option. The example below defines a very basic JSClass (named global_class) with no methods or properties of its own. Use JS_NewGlobalObject to create a global object. Use JS_InitStandardClasses to populate it with th...
JS_GetImplementationVersion
Get the version number of the JS engine. Syntax const char * JS_GetImplementationVersion(void); Description JS_GetImplementationVersion returns a hard-coded, English language string that specifies the version number of the JS engine currently in use, and its release date. See Also MXR ID Search for JS_GetImplementationVersion JS_GetVersion JS_SetVersionForCompartment ...
JS_StringToVersion
JSVERSION_1_3 Obsolete since JSAPI 24 "1.4" JSVERSION_1_4 Obsolete since JSAPI 24 "ECMAv3" JSVERSION_ECMA_3 "1.5" JSVERSION_1_5 Obsolete since JSAPI 24 "1.6" JSVERSION_1_6 "1.7" JSVERSION_1_7 "1.8" JSVERSION_1_8 Other JSVERSION_UNKNOWN See Also MXR ID Search for JS_StringToVersion JSVersion JS_GetVersion JS_SetVersionForCompartment JS_VersionToString bug 824312 ...
JS_VersionToString
1.4" Obsolete since JSAPI 24 JSVERSION_ECMA_3 "ECMAv3" JSVERSION_1_5 "1.5" Obsolete since JSAPI 24 JSVERSION_1_6 "1.6" JSVERSION_1_7 "1.7" JSVERSION_1_8 "1.8" JSVERSION_ECMA_5 "ECMAv5" JSVERSION_DEFAULT "default" Other NULL See Also MXR ID Search for JS_StringToVersion JSVersion JS_GetVersion JS_SetVersionForCompartment JS_StringToVersion bug 824312 ...
JSAPI reference
criptStackQuota Obsolete since JavaScript 1.8.6 JS_SetOptions Obsolete since JSAPI 27 JS_GetOptions Obsolete since JSAPI 27 JS_ToggleOptions Obsolete since JSAPI 27 enum JSVersion JSVERSION_ECMA_3 JSVERSION_1_6 JSVERSION_1_7 JSVERSION_1_8 JSVERSION_ECMA_5 JSVERSION_DEFAULT JSVERSION_UNKNOWN JSVERSION_LATEST JS_GetImplementationVersion JS_GetVersion JS_SetVersionForCompartment Added in SpiderMonkey 31 JS_StringToVersion JS_VersionToString JS_SetVersion Obsolete since JSAPI 25 JS::CurrentGlobalOrNull Added in SpiderMonkey 31 JS_GetGlobalForScopeChain Obsolete since JSAPI 25 JS_GetGlobalObject Obsolete since JSAPI 24 JS_SetGlobalObject Obsolete since JSAPI 25 JS_InitClass JS_InitStandardClasses JS_ResolveStandardClass JS_EnumerateStan...
SpiderMonkey 24
se). ...list new C++ helpers here... Obsolete APIs ...list obsolete methods/structs/APIs here... Deleted APIs JS_GET_CLASS (use JS_GetClass instead) JS_EnumerateResolvedStandardClasses JS_GetGlobalObject JS_SetCStringsAreUTF8 ...list other deleted APIs... API changes Break out and discuss all API changes here... JSOPTION_STRICT has been renamed to JSOPTION_EXTRA_WARNINGS. JS_SetVersion has been removed, JS Version is now set on the compartment instead of context. JS_GetPrototype, takes context as first argument JS_EncodeStringToBuffer takes add context as first argument, JS_NewRuntime adds a JS_[USE|NO]_HELPER_THREADS flag Delete property in JSClass definitions now use JS_DeletePropertyStub Garbage Collection functions now take runtime argument Most garbage collectio...
IDBTransaction.mode - Web APIs
Explanation readonly Allows data to be read but not changed. readwrite Allows reading and writing of data in existing data stores to be changed. versionchange Allows any operation to be performed, including ones that delete and create object stores and indexes. This mode is for updating the version number of transactions that were started using IDBDatabase.setVersion(). Transactions of this mode cannot run concurrently with other transactions. Transactions in this mode are known as "upgrade transactions." Example In the following code snippet, we open a read/write transaction on our database and add some data to an object store. Note also the functions attached to transaction event handlers to report on the outcome of the transaction opening in the ev...
IDBTransaction - Web APIs
READ_WRITE "readwrite" (1 in Chrome) Allows reading and writing of data in existing data stores to be changed. VERSION_CHANGE "versionchange" (2 in Chrome) Allows any operation to be performed, including ones that delete and create object stores and indexes. This mode is for updating the version number of transactions that were started using the setVersion() method of IDBDatabase objects. Transactions of this mode cannot run concurrently with other transactions. Transactions in this mode are known as "upgrade transactions." Even if these constants are now deprecated, you can still use them to provide backward compatibility if required (in Chrome the change was made in version 21). You should code defensively in case the object is not availab...
Index - Web APIs
Web › API › Index
Reference, Reference(2) The version property of the IDBVersionChangeEvent interface returns The new version of the database in a versionchange transaction. 2125 IDBVersionChangeRequest API, Interface, Obsolete, Reference, Reference(2) The IDBVersionChangeRequest interface the IndexedDB API represents a request to change the version of a database. It is used only by the setVersion() method of IDBDatabase. 2126 IDBVersionChangeRequest.setVersion() API, Method, NeedsExample, Obsolete, Reference, Reference(2) For older WebKit browsers, call this method before creating or deleting an object store. 2127 IIRFilterNode API, Audio, IIRFilterNode, Interface, Reference, Web Audio API The IIRFilterNode interface of the Web Audio API is a Audi...
Basic concepts - Web APIs
a greater version than the current one. This will start a versionchange transaction and fire an upgradeneeded event. The only place where the schema of the database can be updated is inside the handler of that event. Note: This definition describes the most recent specification, which is only implemented in up-to-date browsers. Old browsers implemented the now deprecated and removed IDBDatabase.setVersion() method. database connection An operation created by opening a database. A given database can have multiple connections at the same time. transaction An atomic set of data-access and data-modification operations on a particular database. It is how you interact with the data in a database. In fact, any reading or changing of data in the database must happen in a transaction. A database co...
Using IndexedDB - Web APIs
se--which involves creating or deleting object stores or indexes--the transaction must be in versionchange mode. This transaction is opened by calling the IDBFactory.open method with a version specified. (In WebKit browsers, which have not implemented the latest specification, the IDBFactory.open method takes only one parameter, the name of the database; then you must call IDBVersionChangeRequest.setVersion to establish the versionchange transaction.) To read the records of an existing object store, the transaction can either be in readonly or readwrite mode. To make changes to an existing object store, the transaction must be in readwrite mode. You open such transactions with IDBDatabase.transaction. The method accepts two parameters: the storeNames (the scope, defined as an array of object stores...
IndexedDB API - Web APIs
olete interfaces An early version of the specification also defined the following, now removed, interfaces. They are still documented in case you need to update previously written code: IDBVersionChangeRequest Represents a request to change the version of a database. The way to change the version of the database has since changed (by calling IDBFactory.open without also calling IDBDatabase.setVersion), and the interface IDBOpenDBRequest now has the functionality of the removed IDBVersionChangeRequest. IDBDatabaseException Represents exception conditions that can be encountered while performing database operations. IDBTransactionSync Sync version of IDBTransaction. IDBObjectStoreSync Sync version of IDBObjectStore. IDBIndexSync Sync version of IDBIndex. IDBFactorySync Sync...