Now JS error is triggered on the script element, not document.
Now JS error is triggered on the script element, not document.

This is necessary for the script element's onerror handler to run.

aduyng/jsdom,Joris-van-der-Wel/jsdom,kangax/jsdom,sebmck/jsdom,cpojer/jsdom,evdevgit/jsdom,Sebmaster/jsdom,szarouski/jsdom,kevinold/jsdom,vestineo/jsdom,aduyng/jsdom,darobin/jsdom,zaucy/jsdom,janusnic/jsdom,vestineo/jsdom,zaucy/jsdom,godmar/jsdom,sebmck/jsdom,danieljoppi/jsdom,kittens/jsdom,janusnic/jsdom,snuggs/jsdom,jeffcarp/jsdom,kesla/jsdom,concord-consortium/jsdom,godmar/jsdom,lcstore/jsdom,nicolashenry/jsdom,aduyng/jsdom,beni55/jsdom,Joris-van-der-Wel/jsdom,AshCoolman/jsdom,Sebmaster/jsdom,Ye-Yong-Chi/jsdom,evdevgit/jsdom,kittens/jsdom,AVGP/jsdom,concord-consortium/jsdom,robertknight/jsdom,kangax/jsdom,kevinold/jsdom,nicolashenry/jsdom,nicolashenry/jsdom,szarouski/jsdom,robertknight/jsdom,selam/jsdom,Ye-Yong-Chi/jsdom,kesla/jsdom,mbostock/jsdom,substack/jsdom,zaucy/jsdom,mzgol/jsdom,sirbrillig/jsdom,AshCoolman/jsdom,dexteryy/jsdom-nogyp,isaacs/jsdom,dexteryy/jsdom-nogyp,Zirro/jsdom,lcstore/jsdom,iizukanao/jsdom,tmpvar/jsdom,tmpvar/jsdom,susaing/jsdom,Ye-Yong-Chi/jsdom,evanlucas/jsdom,danieljoppi/jsdom,crealogix/jsdom,mzgol/jsdom,robertknight/jsdom,cpojer/jsdom,evdevgit/jsdom,beni55/jsdom,selam/jsdom,darobin/jsdom,sirbrillig/jsdom,brianmcd/cloudbrowser-jsdom,singlebrook/linkck,darobin/jsdom,selam/jsdom,AshCoolman/jsdom,medikoo/jsdom,Sebmaster/jsdom,isaacs/jsdom,kittens/jsdom,AVGP/jsdom,sebmck/jsdom,danieljoppi/jsdom,susaing/jsdom,evanlucas/jsdom,mbostock/jsdom,mzgol/jsdom,kevinold/jsdom,kesla/jsdom,beni55/jsdom,Zirro/jsdom,papandreou/jsdom,fiftin/jsdom,fiftin/jsdom,brianmcd/cloudbrowser-jsdom,medikoo/jsdom,cpojer/jsdom,Joris-van-der-Wel/jsdom,substack/jsdom,evanlucas/jsdom,janusnic/jsdom,jeffcarp/jsdom,susaing/jsdom,lcstore/jsdom,snuggs/jsdom,szarouski/jsdom,medikoo/jsdom,fiftin/jsdom,mbostock/jsdom,sirbrillig/jsdom,papandreou/jsdom,crealogix/jsdom,jeffcarp/jsdom,vestineo/jsdom,iizukanao/jsdom