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

Created js_loop member (to detect infinite loops in JS scripts).

Moved JS-related constant definitions to sbbsdefs.h.
parent 1f2a6fc7
No related branches found
No related tags found
No related merge requests found
......@@ -107,9 +107,6 @@
#endif
#include <jsapi.h>
#include <jsprf.h> /* JS-safe sprintf functions */
#define JAVASCRIPT_MAX_BYTES (8*1024*1024)
#define JAVASCRIPT_CONTEXT_STACK (16*1024)
#endif
/***********************/
......@@ -190,6 +187,7 @@ public:
JSRuntime* js_runtime;
JSContext* js_cx;
JSObject* js_glob;
ulong js_loop;
long js_execfile(char *fname);
bool js_init(void);
......
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