docs: @Override
      public void detachScriptFile(IScriptable target) {
          IScriptFile scriptFile = mScriptMap.remove(target);
          if (scriptFile != null) {
              scriptFile.invokeFunction("onDetach", new Object[] { target });
          }
      }