aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/target/jvm/loader.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/target/jvm/loader.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/library/lux/target/jvm/loader.lux b/stdlib/source/library/lux/target/jvm/loader.lux
index 1d5eda342..82999be00 100644
--- a/stdlib/source/library/lux/target/jvm/loader.lux
+++ b/stdlib/source/library/lux/target/jvm/loader.lux
@@ -116,12 +116,12 @@
(let [class_name (:as Text class_name)
classes (|> library atom.read! io.run!)]
(case (dictionary.value class_name classes)
- (#.Some bytecode)
+ {#.Some bytecode}
(case (..define class_name bytecode (<| <cast> self))
- (#try.Success class)
+ {#try.Success class}
(:expected class)
- (#try.Failure error)
+ {#try.Failure error}
(panic! (exception.error ..cannot_define [class_name error])))
#.None
@@ -135,7 +135,7 @@
(in (exception.except ..already_stored name))
(do !
[_ (atom.update! (dictionary.has name bytecode) library)]
- (in (#try.Success []))))))
+ (in {#try.Success []})))))
(def: .public (load name loader)
(-> Text java/lang/ClassLoader