Skip to content

Instantly share code, notes, and snippets.

@Raynes Raynes/*scratch*
Created Mar 21, 2010

Embed
What would you like to do?
rayne@rayne-desktop:~/clj-sandbox$ lein repl
Warning: the repl task currently doesn't honor some project.clj
options due to I/O stream issues. Future versions will address
this, but for now you will get more consistent behaviour from repls
launched by either the lein-swank plugin or the lein-nailgun plugin.
Clojure 1.1.0
user=> (use 'net.licenser.sandbox)
nil
user=> (enable-security-manager)
nil
user=> (def sc (create-sandbox-compiler))
#'user/sc
user=> ((sc "(+ 2 2)") {})
java.lang.SecurityException: Code did not pass sandbox guidelines (NO_SOURCE_FILE:0)
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.