(refs #32)Add plugin system initialization

This commit is contained in:
Naoki Takezoe
2014-06-14 14:00:21 +09:00
parent 62d43f120a
commit f3900ca8f9
5 changed files with 70 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ object JavaScriptPlugin {
val context = JsContext.enter()
try {
val scope = context.initStandardObjects()
scope.put("PluginSystem", scope, this)
scope.put("PluginSystem", scope, PluginSystem)
scope.put("JavaScriptPlugin", scope, this)
val result = context.evaluateString(scope, script, "<cmd>", 1, null)
result