diff options
Diffstat (limited to 'lux-js/source')
-rw-r--r-- | lux-js/source/program.lux | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux index bc1e6b928..e81892170 100644 --- a/lux-js/source/program.lux +++ b/lux-js/source/program.lux @@ -7,6 +7,7 @@ [abstract [monad (#+ do)]] [control + ["." maybe] ["." try (#+ Try)] ["." exception (#+ exception:)] ["." io (#+ IO io)] @@ -15,7 +16,6 @@ ["." async (#+ Async)]]] [data ["." product] - ["." maybe] [text ["%" format (#+ format)] [encoding @@ -173,7 +173,7 @@ (|> value .nat runtime.low jvm_int) _ - (error! (exception.construct ..unknown_member [member (:as java/lang/Object value)])))) + (panic! (exception.construct ..unknown_member [member (:as java/lang/Object value)])))) )) (def: (::toString js_object) @@ -256,7 +256,7 @@ (|> value (array.read 2) maybe.assume js_object (:as java/lang/Object)) _ - (error! (exception.construct ..unknown_member [(:as Text member) (:as java/lang/Object value)]))) + (panic! (exception.construct ..unknown_member [(:as Text member) (:as java/lang/Object value)]))) ) (org/openjdk/nashorn/api/scripting/AbstractJSObject [] (getSlot self {idx int}) java/lang/Object |