MCPcopy
hub / github.com/emacs-eaf/emacs-application-framework / execute_js

Method execute_js

core/webengine.py:409–416  ·  view source on GitHub ↗

Execute JavaScript and get result. NOTE: Please use eval_js instead if JavaScript function haven't result return. Otherwise, execute_js will block EAF!!!

(self, js)

Source from the content-addressed store, hash-verified

407 self.eval_js(self.read_js_content(js_file))
408
409 def execute_js(self, js):
410 ''' Execute JavaScript and get result.
411
412 NOTE:
413 Please use eval_js instead if JavaScript function haven't result return.
414 Otherwise, execute_js will block EAF!!!
415 '''
416 return self.web_page.execute_javascript(js)
417
418 def eval_js_function(self, *args):
419 try:

Callers 14

get_selection_textMethod · 0.95
get_marker_linkMethod · 0.95
get_code_contentMethod · 0.95
_caret_at_lineMethod · 0.95
get_focus_textMethod · 0.95
get_cursor_wordMethod · 0.95
immersive_translationMethod · 0.95
fetch_marker_callbackMethod · 0.80
caret_enable_markMethod · 0.80
caret_toggle_markMethod · 0.80
_caret_search_textMethod · 0.80

Calls 1

execute_javascriptMethod · 0.80

Tested by

no test coverage detected