diff options
Diffstat (limited to '')
-rw-r--r-- | lux-js/source/program.lux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lux-js/source/program.lux b/lux-js/source/program.lux index 77b23e2f7..f3b149e72 100644 --- a/lux-js/source/program.lux +++ b/lux-js/source/program.lux @@ -105,7 +105,7 @@ {object java/lang/Object}) (exception.report ["Member" member] - ["Object" (java/lang/Object::toString object)])) + ["Object" (debug.inspect object)])) (def: jvm-int (-> (I64 Any) java/lang/Integer) @@ -186,7 +186,7 @@ (jdk/nashorn/api/scripting/AbstractJSObject [] (getMember self {member java/lang/String}) java/lang/Object (case member - "toString" + (^or "toJSON" "toString") (:coerce java/lang/Object (::toString value)) |