X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=jscl.lisp;h=b812e7bdd3bd56cc39d564cd16a553c8fdf0479d;hb=ebe7c315e2527ae59ce5544c4d117ead4dd04ff3;hp=e21ab3d4a1f0d01934694e6ee7afffdb5e91f8bd;hpb=93a48dc177c1509396980002910124d70aaa4089;p=jscl.git diff --git a/jscl.lisp b/jscl.lisp index e21ab3d..b812e7b 100644 --- a/jscl.lisp +++ b/jscl.lisp @@ -160,17 +160,22 @@ (setq *variable-counter* 0 *gensym-counter* 0 *literal-counter* 0) - (with-open-file (out (merge-pathnames "jscl.js" *base-directory*) :direction :output :if-exists :supersede) + (with-open-file (out (merge-pathnames "jscl.js" *base-directory*) + :direction :output + :if-exists :supersede) (write-string (read-whole-file (source-pathname "prelude.js")) out) (do-source input :target (!compile-file input out)) (dump-global-environment out)) ;; Tests - (with-open-file (out (merge-pathnames "tests.js" *base-directory*) :direction :output :if-exists :supersede) + (with-open-file (out (merge-pathnames "tests.js" *base-directory*) + :direction :output + :if-exists :supersede) (dolist (input (append (directory "tests.lisp") (directory "tests/*.lisp") (directory "tests-report.lisp"))) - (!compile-file input out))))) + (!compile-file input out))) + (report-undefined-functions))) ;;; Run the tests in the host Lisp implementation. It is a quick way