mirror of
https://github.com/janet-lang/janet
synced 2025-10-22 03:07:41 +00:00
Disable PRF by default.
Since it is not any better by default without initializing the key, we disable it by default. It can be turned on with JANET_PRF in janetconf.h.
This commit is contained in:
@@ -48,7 +48,9 @@
|
||||
(defn check-image
|
||||
"Run a marshaling test using the make-image and load-image functions."
|
||||
[x msg]
|
||||
(assert-no-error msg (load-image (make-image x))))
|
||||
(def im (make-image x))
|
||||
(printf "\nimage-hash: %d" (-> im string hash))
|
||||
(assert-no-error msg (load-image im)))
|
||||
|
||||
(check-image (fn [] (fn [] 1)) "marshal nested functions")
|
||||
(check-image (fiber/new (fn [] (fn [] 1))) "marshal nested functions in fiber")
|
||||
|
Reference in New Issue
Block a user