MCPcopy Create free account
hub / github.com/Comcast/rulio / RunJavascript

Function RunJavascript

core/javascript.go:511–953  ·  view source on GitHub ↗

RunJavascript executes Javascript code with the given bindings. A new environment is created for each call. That environment contains several bindings. See http://github.com/Comcast/rulio/blob/master/doc/Manual.md#in-process-javascript-actions for details. Currently the Javascript implementation

(ctx *Context, bs *Bindings, props map[string]interface{}, src interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

ProcessRequestMethod · 0.92
HealthDeepMethod · 0.92
ExecMethod · 0.85
RunJavascriptMethod · 0.85
GetThunkMethod · 0.85
getActionFuncMethod · 0.85
TestJavascriptFunction · 0.85
TestJavascriptErrorFunction · 0.85
DontTestJavascriptGetFunction · 0.85
BenchmarkJavascriptNoOpFunction · 0.85
BenchmarkJavascriptLoopFunction · 0.85

Calls 15

StopMethod · 0.95
SetMethod · 0.95
ExecMethod · 0.95
NewTimerFunction · 0.85
LogFunction · 0.85
loggableFunction · 0.85
GorepFunction · 0.85
throwJavascriptFunction · 0.85
CachedSlurpFunction · 0.85
SlurpFunction · 0.85
jsFun_httpFunction · 0.85
jsFun_httpxFunction · 0.85

Tested by 15

TestJavascriptFunction · 0.68
TestJavascriptErrorFunction · 0.68
DontTestJavascriptGetFunction · 0.68
BenchmarkJavascriptNoOpFunction · 0.68
BenchmarkJavascriptLoopFunction · 0.68
ExampleRunJavascriptFunction · 0.68
TestJavascriptBindingsFunction · 0.68
TestJavascriptOutFunction · 0.68
TestJavascriptMatchFunction · 0.68
TestJavascriptLocationFunction · 0.68