Created
January 6, 2015 19:21
-
-
Save mfikes/06bad1d73057405bd50e to your computer and use it in GitHub Desktop.
Try to support both interfaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defrecord WebsocketEnv [] | |
cljs.repl/IJavaScriptEnv | |
(-setup [this _] (websocket-setup-env this)) | |
(-evaluate [_ _ _ js] (websocket-eval js)) | |
(-load [this ns url] (load-javascript this ns url)) | |
(-tear-down [_] (websocket-tear-down-env))) | |
(if false | |
(reify cljs.repl/IJavaScriptEnv | |
(-setup [_]) | |
(-evaluate [_ _ _ _]) | |
(-load [_ _ _]) | |
(-tear-down [_]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code above produces this when I put it in the Weasel codebase and then try to use it in a project.
Line 42 in the stacktrace below is line 10 above.