fix: reject the executeJavaScript promise when it fails to execute the script (#18635)
fix: reject the executeJavaScript promise when it fails to execute the script (#18635)

* fix: reject the executeJavaScript promise when it fails to execute the script

Closes #9102

* Update atom/renderer/api/atom_api_web_frame.cc

Co-Authored-By: Jeremy Apthorp <ae3b7027bc3bec69f494697c81510be4fb0b9489@nornagon.net>

* Update atom/renderer/api/atom_api_web_frame.cc

Co-Authored-By: Jeremy Apthorp <ae3b7027bc3bec69f494697c81510be4fb0b9489@nornagon.net>

* fix: missing semicolon

electron/electron,the-ress/electron,bpasero/electron,gerhardberger/electron,seanchas116/electron,bpasero/electron,electron/electron,seanchas116/electron,electron/electron,bpasero/electron,gerhardberger/electron,gerhardberger/electron,bpasero/electron,gerhardberger/electron,bpasero/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,gerhardberger/electron,the-ress/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,seanchas116/electron,electron/electron,the-ress/electron,the-ress/electron,the-ress/electron,the-ress/electron,electron/electron,bpasero/electron,the-ress/electron,electron/electron,seanchas116/electron