Skip to content
Snippets Groups Projects
Commit 7ad211f5 authored by rswindell's avatar rswindell
Browse files

Created jsexec_revision string property (contains CVS revision of jsexec.c).

parent 41956f53
No related branches found
No related tags found
No related merge requests found
......@@ -592,6 +592,10 @@ long js_exec(const char *fname, char** args)
JS_DefineProperty(js_cx, js_glob, "argc", INT_TO_JSVAL(argc)
,NULL,NULL,JSPROP_READONLY|JSPROP_ENUMERATE);
JS_DefineProperty(js_cx, js_glob, "jsexec_revision"
,STRING_TO_JSVAL(JS_NewStringCopyZ(js_cx,revision))
,NULL,NULL,JSPROP_READONLY|JSPROP_ENUMERATE);
JS_SetBranchCallback(js_cx, js_BranchCallback);
if(fp==stdin) /* Using stdin for script source */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment