MCPcopy Create free account
hub / github.com/mozilla/rhino / enter

Method enter

rhino/src/main/java/org/mozilla/javascript/Context.java:444–446  ·  view source on GitHub ↗

Same as calling ContextFactory#enterContext() on the global ContextFactory instance. @return a Context associated with the current thread @see #getCurrentContext() @see #exit() @see #call(ContextAction)

()

Source from the content-addressed store, hash-verified

442 * @see #call(ContextAction)
443 */
444 public static Context enter() {
445 return enter(null, ContextFactory.getGlobal());
446 }
447
448 /**
449 * Get a Context associated with the current thread, using the given Context if need be.

Callers 15

getEngineVersionMethod · 0.95
mixedCompileInterpretMethod · 0.95
setUpMethod · 0.95
getByteCodeFromMethod · 0.95
testThisMethod · 0.95
testGeneratorMethod · 0.95
setUpMethod · 0.95
setUpClassMethod · 0.95

Calls 7

getGlobalMethod · 0.95
getMethod · 0.65
makeContextMethod · 0.45
onContextCreatedMethod · 0.45
isSealedMethod · 0.45
sealMethod · 0.45
setMethod · 0.45

Tested by 15

mixedCompileInterpretMethod · 0.76
setUpMethod · 0.76
getByteCodeFromMethod · 0.76
testThisMethod · 0.76
testGeneratorMethod · 0.76
setUpMethod · 0.76
setUpClassMethod · 0.76
setUpMethod · 0.76