preProcessing method

Future<void> preProcessing(
  1. double contextId, {
  2. bool isModule = false,
})

Implementation

Future<void> preProcessing(double contextId, {bool isModule = false}) async {
  if (isJavascript && data != null && isPageAlive(contextId)) {
    assert(isValidUTF8String(data!), 'JavaScript code is not UTF-8 encoded.');

    data = await dumpQuickjsByteCode(contextId, data!, url: _uri.toString(), isModule: isModule);

    _contentType = webfBc1ContentType;
  }
}