code: function _currentEvaluatingScript() {
    // Yes, this IS possible, i.e. if a script removes other scripts (or itself)
    if (scripts.length === 0) {
      return null;
    }
  
    // Guaranteed accurate in IE 6-10.
    // Not supported in any other browsers. =(
    if (canPolyfill) {
      for (var i = scripts.length; i--; ) {
        if (scripts[i] && scripts[i].readyState === "interactive") {
          return scripts[i];
        }
      }
    }
  
    // If the native method exists, defer to that as a last-ditch effort
    if (
      typeof nativeCurrentScriptFn === "function" &&
      _currentEvaluatingScript.doNotDeferToNativeMethod !== true
    ) {
      return nativeCurrentScriptFn.call(document) || null;
    }
  
    // Any other attempts cannot be guaranteed and, as such, should be left out
    // from this "Strict Mode" behavior.
    // Alas, returning `null` here is not necessarily accurate either.
    // We could return `undefined` instead but that would not comply with the spec
    // in cases where it should correctly be returning `null`.
    return null;
  }
docs: Top-level API (compliant with `document.currentScript` specifications)  Get the currently "executing" (i.e. EVALUATING) `script` DOM element, per the spec requirements for `document.currentScript`.  IMPORTANT: This polyfill CANNOT achieve 100% accurate results cross-browser. ;_;