Open kflynn opened 8 years ago
This is a regression since 0.7.
In check.q:
quark 1.0; namespace check { String Check(String p1) { Map<String, String> params = { "p1": p1 }; // ...and the JSON for the request body... JSONObject jParams = params.toJSON(); String jsonParams = jParams.toString(); return jsonParams; } }
quark install --python --javascript check.q, then in Python:
quark install --python --javascript check.q
from check import Check print(Check("hello"))
and in JavaScript:
var Check = require('check').check.Check; console.log(Check("hello"));
In both cases the output is {"p1":{"$class":"quark.Object"}}.
{"p1":{"$class":"quark.Object"}}
(I didn't try Java or Ruby. Identical brokenness in two of the target languages implies not a target language problem.)
Hopefully fixed in 3fb719e
I enabled the test in quarkc/test/lib/map_test.q so we shouldn't break this again. However, my "fix" is not a good one, to be sure.
quarkc/test/lib/map_test.q
This is a regression since 0.7.
In check.q:
quark install --python --javascript check.q
, then in Python:and in JavaScript:
In both cases the output is
{"p1":{"$class":"quark.Object"}}
.(I didn't try Java or Ruby. Identical brokenness in two of the target languages implies not a target language problem.)