diff options
author | Eduardo Julian | 2019-06-16 04:06:47 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-06-16 04:06:47 -0400 |
commit | 4bf2dce01f51a5b0be76a587f877d1227c3982ae (patch) | |
tree | 8a3a31be070e3ba04fc5e79b9c17c151f90677a6 /lux-js/source | |
parent | 0cc98bbe9cae3fd9fc50d8c78c1deaba7e557531 (diff) |
Fixes and adaptations for the JavaScript compiler.
Diffstat (limited to 'lux-js/source')
-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)) |