Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reporting Bootstrap Issues

Shaun Mahood edited this pageMar 18, 2017 ·12 revisions

DEPRECATION NOTICE: Please do not edit this wiki. Instead submit pull requests tohttps://github.com/clojure/clojurescript-site

The up to date version of this page can be found athttps://clojurescript.org/community/reporting-bootstrap-issues

Ticket Entry

Please enter issues with self-hosted / bootstrapped ClojureScript

  • marked as having Minor priority
  • title prefixed with "Self-host: "
  • marked withbootstrap label

Minimal Repro

Do not rely on downstream bootstrapped environments to report or demonstrate issues.

Oftentimes, a new unit test can be written that fails whenscript/test-self-parity is run. (This runs the compiler unit tests, but in a bootstrap environment).

Otherwise, reproduction steps generally need to involve minimal code that exercisescljs.js, demonstrating the issue.

Frequently it is possible to do this with a couple of lines in a REPL. Here is an example exercising thecljs.js/eval-str API by simply issuing a couple forms in the shipping Nashorn REPL:

$ java -jar cljs.jar -m cljs.repl.nashornTo quit, type: :cljs/quitcljs.user=> (require 'cljs.js)nilcljs.user=> (cljs.js/eval-str (cljs.js/empty-state)   "(+ 1 2)" nil {:eval cljs.js/js-eval :context :expr} identity){:ns cljs.user, :value 3}

(Note: If you have Node installed, you can do the same by replacingcljs.repl.nashorn withcljs.repl.node in the above.)

For more complex situations, reproduction could involve additional code, or even a new self-host unit test that exhibits the problem. Information on self-host unit tests ishere.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp