Skip to content

Instantly share code, notes, and snippets.

@jmercouris
Created January 6, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmercouris/c25ebc01515acf239460c991a3534fbe to your computer and use it in GitHub Desktop.
Save jmercouris/c25ebc01515acf239460c991a3534fbe to your computer and use it in GitHub Desktop.
(cffi:defcallback callybacky :void ((source-object :pointer)
(result :pointer)
(user-data :pointer))
(let* ((np (cffi:null-pointer))
(js-result
(webkit2:webkit-web-view-run-javascript-finish
(current-view *next-interface*) result))
(context (webkit2:webkit-javascript-result-get-global-context js-result))
(value (webkit2:webkit-javascript-result-get-value js-result))
(js-str-value (jscore:js-value-to-string-copy context value np)))
(print js-result)
(print context)
(print value)
(print js-str-value))
(break)
nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment