Search completed in 0.95 seconds.
14 results for "JS_FS":
JS_FS
MozillaProjectsSpiderMonkeyJSAPI referenceJS FS
syntax #define js_fs(name,call,nargs,flags) ...
...// added in spidermonkey 31 #define js_fs_end ...
...see also mxr id search for js_fs mxr id search for js_fn mxr id search for js_sym_fn mxr id search for js_fninfo mxr id search for js_self_hosted_fn mxr id search for js_self_hosted_sym_fn mxr id search for js_sym_fnspec mxr id search for js_fnspec mxr id search for js_fs_end jsfunctionspec js_defineproperties js_initclass bug 775788 - added js_fninfo.
JSFunctionSpec
MozillaProjectsSpiderMonkeyJSAPI referenceJSFunctionSpec
to define an array of jspropertyspec, use js_fs, js_fn, js_sym_fn, js_fninfo, js_self_hosted_fn, js_self_hosted_sym_fn, js_sym_fnspec, js_fnspec, and js_fs_end.
... see also mxr id search for jsfunctionspec jspropertyspec jsnative js_fs js_fn js_sym_fn js_fninfo js_self_hosted_fn js_self_hosted_sym_fn js_sym_fnspec js_fnspec js_fs_end property attributes js_definefunctions js_initclass ...
JS_DefineFunctions
MozillaProjectsSpiderMonkeyJSAPI referenceJS DefineFunctions
this array is usually defined as a static global, with each record initialized using js_fs or js_fn.
...(the macro js_fs_end can be used for the last element.) js_definefunctions creates one function for each non-zero element in the array.
JS_InitClass
MozillaProjectsSpiderMonkeyJSAPI referenceJS InitClass
fs jsfunctionspec * either null or a pointer to the first element of an array of jsfunctionspecs, terminated by js_fs_end.
...(this is the nearest javascript equivalent of public static member variables in c++ or public static fields in java.) static_fs jsfunctionspec * either null or a pointer to the first element of an array of jsfunctionspecs, terminated by js_fs_end.
Property attributes
MozillaProjectsSpiderMonkeyJSAPI referenceProperty attributes
see js_defineproperty, js_fs, and js_fn flag description jsprop_enumerate the property is visible to javascript for...in and for each ...
...obsolete since jsapi 39 this flag has an additional special meaning when used with js_defineproperty, js_fs, and other apis that define properties: it means that the name parameter is actually an integer unsafely cast to a pointer type, not a string.
How to embed the JavaScript engine
MozillaProjectsSpiderMonkeyHow to embed the JavaScript engine
*/ js_fs_end }; js_fs_end terminates the table.
Index
MozillaProjectsSpiderMonkeyIndex
268 js_fs jsapi reference, spidermonkey use these macros to define an array of jsfunctionspecs to pass to js_definefunctions or js_initclass.
JSAPI User Guide
MozillaProjectsSpiderMonkeyJSAPI User Guide
static jsfunctionspec myjs_global_functions[] = { js_fs("rand", myjs_rand, 0, 0), js_fs("srand", myjs_srand, 0, 0), js_fs("system", myjs_system, 1, 0), js_fs_end }; ...
JS::NewFunctionFromSpec
MozillaProjectsSpiderMonkeyJSAPI referenceJS::NewFunctionFromSpec
*fs must not be js_fs_end.
JS::PersistentRooted
MozillaProjectsSpiderMonkeyJSAPI referenceJS::PersistentRooted
js::rootedvalue val(cx, persistentval.ref()); // or // js::rootedvalue val(cx, *persistentval); // [spidermonkey 38] // js::rootedvalue val(cx, persistentval); args.rval().set(val); return true; } static const jsfunctionspec functions[] = { js_fn("getpersistent", getpersistent, 1, 0), js_fn("setpersistent", setpersistent, 0, 0), js_fs_end }; int main(int argc, const char* argv[]) { // initialize runtime // ...
JSAPI reference
MozillaProjectsSpiderMonkeyJSAPI reference
38 js::propertyspecnametopermanentid added in spidermonkey 38 js_getreservedslot js_setreservedslot struct jsextendedclass obsolete since javascript 1.8.5 struct jsobjectops obsolete since javascript 1.8.5 struct jsxmlobjectops obsolete since javascript 1.8.5 struct jsproperty obsolete since jsapi 16 adding native properties and methods to classes: jsnative struct jsfunctionspec js_fs added in spidermonkey 1.8 js_fn added in spidermonkey 1.8 js_sym_fn added in spidermonkey 38 js_fninfo added in spidermonkey 17 js_self_hosted_fn added in spidermonkey 31 js_self_hosted_sym_fn added in spidermonkey 38 js_sym_fnspec added in spidermonkey 38 js_fnspec added in spidermonkey 31 js_fs_end added in spidermonkey 1.8 struct jspropertyspec js_psg added in spidermonkey 17 js_psg...
SpiderMonkey 1.8.5
MozillaProjectsSpiderMonkeyReleases1.8.5
the js_fs macro has been adjusted, losing its third (unused) argument.
SpiderMonkey 1.8.7
MozillaProjectsSpiderMonkeyReleases1.8.7
the js_fs macro has been adjusted, losing its third (unused) argument.
SpiderMonkey 1.8
MozillaProjectsSpiderMonkeyReleases1.8
new macros js_fs, js_fn, and js_fs_end are recommended for populating jsfunctionspec arrays.