Here's the reason for the can-test-thrown-with-msg problem. The test
gets compiled down to those Javascript statements in each mode:

Whitespace mode:

    new RegExp("f(");

Simple mode:

    /f(/

Advanced mode:

    /f(/

In whitespace mode the regular expression is created at runtime, so it
blows up at runtime and the test works just fine.

Howeveer, in simple and advanced mode the expression gets compiled to
a Regex literal and the interpreter is actually throwing an exception
because of the invalid regex literal, even before any Javascript is
executed. This is the stack trace I get on my machine, and it is
actually PhantomJS that is complaining.

    [roman@bombaclaat clojurescript.test]$ lein clean && lein test                                                                                                                                                                                                                             
    Deleting files generated by lein-cljsbuild.                                                                                                                                                                                                                                                
    Compiling ClojureScript.                                                                                                                                                                                                                                                                   
    Compiling "target/cljs/testable.js" from ["src" "test"]...                                                                                                                                                                                                                                 
    Successfully compiled "target/cljs/testable.js" in 9.994045175 seconds.                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                               
    lein test user                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                               
    Testing user                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                               
    Ran 0 tests containing 0 assertions.                                                                                                                                                                                                                                                       
    0 failures, 0 errors.                                                                                                                                                                                                                                                                      
    Running all ClojureScript tests.                                                                                                                                                                                                                                                           
    SyntaxError: Invalid regular expression: missing )                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                               
    ReferenceError: Can't find variable: cemerick                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                               
      phantomjs://webpage.evaluate():2                                                                                                                                                                                                                                                         
      phantomjs://webpage.evaluate():3                                                                                                                                                                                                                                                         
      phantomjs://webpage.evaluate():3                                                                                                                                                                                                                                                         
    ReferenceError: Can't find variable: cemerick                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                               
      phantomjs://webpage.evaluate():2                                                                                                                                                                                                                                                         
      phantomjs://webpage.evaluate():5                                                                                                                                                                                                                                                         
      phantomjs://webpage.evaluate():5                                                                                                                                                                                                                                                         
    Exception in thread "main" java.lang.Exception: Test failed.                                                                                                                                                                                                                               
            at cljsbuild.test$run_tests.invoke(test.clj:12)                                                                                                                                                                                                                                    
            at user$eval199.invoke(NO_SOURCE_FILE:1)                                                                                                                                                                                                                                           
            at clojure.lang.Compiler.eval(Compiler.java:6511)                                                                                                                                                                                                                                  
            at clojure.lang.Compiler.eval(Compiler.java:6501)                                                                                                                                                                                                                                  
            at clojure.lang.Compiler.eval(Compiler.java:6477)                                                                                                                                                                                                                                  
            at clojure.core$eval.invoke(core.clj:2797)                                                                                                                                                                                                                                         
            at clojure.main$eval_opt.invoke(main.clj:297)                                                                                                                                                                                                                                      
            at clojure.main$initialize.invoke(main.clj:316)                                                                                                                                                                                                                                    
            at clojure.main$null_opt.invoke(main.clj:349)                                                                                                                                                                                                                                      
            at clojure.main$main.doInvoke(main.clj:427)                                                                                                                                                                                                                                        
            at clojure.lang.RestFn.invoke(RestFn.java:421)                                                                                                                                                                                                                                     
            at clojure.lang.Var.invoke(Var.java:419)                                                                                                                                                                                                                                           
            at clojure.lang.AFn.applyToHelper(AFn.java:163)                                                                                                                                                                                                                                    
            at clojure.lang.Var.applyTo(Var.java:532)                                                                                                                                                                                                                                          
            at clojure.main.main(main.java:37)                                                                                                                                                                                                                                                 


That's my interpretation of the problem, and I think the test in
question is just not suitable for simple, nor advanced mode. I think
this should actually be catched by the Google Closure compiler. Should
I remove the test?