copyName method

JSString copyName()

Gets the global context of a JavaScript execution context. @result (JSGlobalContext) ctx's global context. 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. @result (JSString) The name for ctx.

Implementation

/*JSGlobalContext get globalContext {
  return JSGlobalContext(JSContextRef.jSContextGetGlobalContext(pointer));
}*/

/// 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.
/// [@result] (JSString) The name for ctx.
JSString copyName() {
  return JSString(JSContextRef.jSGlobalContextCopyName(pointer));
}