MCPcopy Create free account
hub / github.com/Tencent/RapidView / load

Method load

luaj_virtual_machine/src/core/org/luaj/vm2/Globals.java:195–197  ·  view source on GitHub ↗

Convenience function to load a string value as a script. Must be lua source. @param script Contents of a lua script, such as "print 'hello, world.'" @param chunkname Name that will be used within the chunk as the source. @return LuaValue that may be executed via .call(), .invoke(), or .method() cal

(String script, String chunkname)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 14

testUtf8CharsInStreamMethod · 0.95
runFragmentMethod · 0.95
mainMethod · 0.95
loadfileMethod · 0.95
standardGlobalsMethod · 0.95
debugGlobalsMethod · 0.95
compileMethod · 0.95
standardGlobalsMethod · 0.95
debugGlobalsMethod · 0.95
runScriptInSandboxMethod · 0.95
mainMethod · 0.95
testDirectEvaluationMethod · 0.95

Calls 3

loadPrototypeMethod · 0.95
loadMethod · 0.65
errorMethod · 0.45

Tested by 4

testUtf8CharsInStreamMethod · 0.76
runFragmentMethod · 0.76
mainMethod · 0.76
testDirectEvaluationMethod · 0.76