Context.getCurrent

javascriptcore.context.Context getCurrent() static nothrow

Get the #JSCContext that is currently executing a function. This should only be called within a function or method callback, otherwise null will be returned.

Returns

the #JSCContext that is currently executing.