Self-host: core/str error with condp
Description
Environment
None
Attachments
2
Activity
David Nolen February 23, 2016 at 2:15 PM
David Nolen
February 23, 2016 at 2:15 PM
Mike Fikes February 23, 2016 at 2:11 PM
Mike Fikes
February 23, 2016 at 2:11 PM
Attached CLJS-1584-2.patch with revisions to apply cleanly to master.
Andrea Richiardi February 23, 2016 at 4:57 AM
Andrea Richiardi
February 23, 2016 at 4:57 AM
I confirm it works.
Testing with Node
Testing self-host.test
Ran 7 tests containing 45 assertions.
0 failures, 0 errors.
$ g ln | head -1
* bf5e075 (HEAD -> master) CLJS-1584: Self-host: core/str error with condp
Completed
Details
Details
Assignee
David Nolen
David NolenReporter
Mike Fikes
Mike FikesLabels
Patch
Code and Test
Priority
Created February 22, 2016 at 9:06 PM
Updated February 23, 2016 at 2:15 PM
Resolved February 23, 2016 at 2:15 PM
cljs.user=> (cljs.js/eval-str (cljs.js/empty-state) "(condp = 1)" nil {:eval cljs.js/js-eval :context :expr} identity) WARNING: No such namespace: core, could not locate core.cljs, core.cljc, or Closure namespace "" at line 1 WARNING: Use of undeclared Var core/str at line 1 {:error #error {:message "ERROR", :data {:tag :cljs/analysis-error}, :cause #object[ReferenceError ReferenceError: core is not defined]}}
Analysis:
The
condp
macro usescore/str
in a syntax-quote context, while every other place it appears thatcljs.core/str
is used in that context.