1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Hacked the sandbox to expose a parse() method

The sandbox will be going shortly, it's convenient at the moment though
This commit is contained in:
Jeremy Ruston 2012-01-03 11:08:41 +00:00
parent 06f9887d59
commit 3515016a7e

View File

@ -15,6 +15,10 @@ var Sandbox = function(parserText) {
this.parser = pegjs.buildParser(parserText);
};
Sandbox.prototype.parse = function(code) {
return this.parser.parse(code);
}
Sandbox.prototype.execute = function(code,globals) {
var globalNames = [],
globalValues = [],