jSGlobalContextCopyName top-level property

Pointer<NativeType> Function(Pointer<NativeType> ctx) jSGlobalContextCopyName
final

Gets a copy of the name of a context. A JSGlobalContext's name is exposed for remote debugging to make it easier to identify the context you would like to attach to. ctx (JSGlobalContextRef) The JSGlobalContext whose name you want to get. @result (JSStringRef) The name for ctx.

Implementation

final Pointer Function(Pointer ctx) jSGlobalContextCopyName = JscFfi.lib
    .lookup<NativeFunction<Pointer Function(Pointer)>>(
        'JSGlobalContextCopyName')
    .asFunction();