copyName method

String? copyName()

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 (String) The name for ctx.

Implementation

String? copyName() {
  final JSString jstr = JSString(JSGlobalContextCopyName(_ref));
  return jstr.string;
}