Mercurial > spidermonkey-playground
changeset 26:3c3ee9206419
Added more docs.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 22 Jun 2009 08:59:00 -0700 |
parents | c837221bd717 |
children | 69622f55fcf6 |
files | spidermonkey-playground.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spidermonkey-playground.cpp Mon Jun 22 08:57:09 2009 -0700 +++ b/spidermonkey-playground.cpp Mon Jun 22 08:59:00 2009 -0700 @@ -44,9 +44,13 @@ #include "wrapper.h" +// Maximum size of any script that we load, in bytes. #define MAX_SCRIPT_SIZE 100000 + +// The name of our JS script containing our Trusted Code Base (TCB). #define TCB_FILENAME "tcb.js" +// Global references to our TCB. static JSContext *tcb_cx; static JSObject *tcb_global;