@@ -18,6 +18,7 @@ module Language.Javascript.JSC.Monad (
19 -- * Running JSC given a DOM Window
19 -- * Running JSC given a DOM Window
22 -- * Exception Handling
23 -- * Exception Handling
23 , catchval
24 , catchval
@@ -95,3 +96,5 @@ runJSC webView f = do
95 gctxt <- webViewGetMainFrame webView >>= webFrameGetGlobalContext
96 gctxt <- webViewGetMainFrame webView >>= webFrameGetGlobalContext
96 runReaderT f gctxt
97 runReaderT f gctxt
100+runJSC_ w f = runJSC w f >> return ()