/src/main/java/org/htmlunit/html/ScriptElementSupport.java
doc.setCurrentScript ( element.getScriptableObject ( ) ) ;
charset = page.getCharset(); } final JavaScriptLoadResult result; final Window win = page.getEnclosingWindow().getScriptableObject(); final Document doc = win.getDocument(); try { <extra_id_0> result = page.loadExternalJavaScriptFile(src, charset); } finally { doc.setCurrentScript(null); } if (result == JavaScriptLoadResult.SUCCESS) {