ClojureScript

Can't generate uri instances

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    {:deps {org.clojure/clojurescript {:mvn/version "1.10.238"}
            org.clojure/test.check {:mvn/version "0.10.0-alpha2"}}}
  • Patch:
    Code and Test
  • Approval:
    Accepted

Description

$ clj -Srepro -m cljs.main -re node -r
ClojureScript 1.10.238
cljs.user=> (require '[clojure.spec.alpha :as s] 'clojure.test.check.generators)
nil
cljs.user=> (s/gen uri?)
repl:13
throw e__6388__auto__;
^

Error: Unable to construct gen at: [] for: function cljs$core$uri_QMARK_(x){
return (x instanceof goog.Uri);
}
    at cljs$spec$alpha$gensub (/private/var/folders/60/ndky5jxj3v3gw_7j1dwq7msw0000gn/T/out213819377331478911568682775483031/cljs/spec/alpha.js:995:8)
    at Function.cljs.spec.alpha.gen.cljs$core$IFn$_invoke$arity$2 (/private/var/folders/60/ndky5jxj3v3gw_7j1dwq7msw0000gn/T/out213819377331478911568682775483031/cljs/spec/alpha.js:1031:31)
    at cljs$spec$alpha$gen (/private/var/folders/60/ndky5jxj3v3gw_7j1dwq7msw0000gn/T/out213819377331478911568682775483031/cljs/spec/alpha.js:1017:28)
    at Function.cljs.spec.alpha.gen.cljs$core$IFn$_invoke$arity$1 (/private/var/folders/60/ndky5jxj3v3gw_7j1dwq7msw0000gn/T/out213819377331478911568682775483031/cljs/spec/alpha.js:1027:28)
    at cljs$spec$alpha$gen (/private/var/folders/60/ndky5jxj3v3gw_7j1dwq7msw0000gn/T/out213819377331478911568682775483031/cljs/spec/alpha.js:1013:28)
    at repl:1:99
    at repl:9:3
    at repl:14:4
    at Script.runInThisContext (vm.js:65:33)
    at Object.runInThisContext (vm.js:197:38)

Relevant: CLJ-1958

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: