From 1ce30d50abaa330ab2125b110e245de6deda27c7 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 8 Jan 2021 19:23:52 -0400 Subject: Moved "log!" function under "lux/debug". --- lux-js/source/program.lux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lux-js/source') diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux index e402a550f..80e53eade 100644 --- a/lux-js/source/program.lux +++ b/lux-js/source/program.lux @@ -382,7 +382,8 @@ #.None (if (org/openjdk/nashorn/api/scripting/JSObject::isFunction js_object) (exception.return js_object) - (exception.throw ..unknown_kind_of_host_object (:coerce java/lang/Object js_object)))))) + ## (exception.throw ..unknown_kind_of_host_object (:coerce java/lang/Object js_object)) + (exception.return js_object))))) #.None) ## else (exception.throw ..unknown_kind_of_host_object (:coerce java/lang/Object js_object)) @@ -540,7 +541,7 @@ (def: define! ..define!) (def: (ingest context content) - (|> content encoding.from_utf8 try.assume (:coerce _.Statement))) + (|> content (\ encoding.utf8 decode) try.assume (:coerce _.Statement))) (def: (re_learn context content) (..execute! content)) -- cgit v1.2.3