summaryrefslogtreecommitdiff
path: root/tools/slang-unit-test/unit-test-json-native.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-unit-test/unit-test-json-native.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-json-native.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/slang-unit-test/unit-test-json-native.cpp b/tools/slang-unit-test/unit-test-json-native.cpp
index 6636cc04a..546131e4b 100644
--- a/tools/slang-unit-test/unit-test-json-native.cpp
+++ b/tools/slang-unit-test/unit-test-json-native.cpp
@@ -107,11 +107,13 @@ static SlangResult _check()
DiagnosticSink sink(&sourceManager, &JSONLexer::calcLexemeLocation);
+ auto typeMap = JSONNativeUtil::getTypeFuncsMap();
+
RefPtr<JSONContainer> container(new JSONContainer(&sourceManager));
String json;
{
- NativeToJSONConverter converter(container, &sink);
+ NativeToJSONConverter converter(container, &typeMap, &sink);
JSONValue value;
SLANG_RETURN_ON_FAIL(converter.convert(GetRttiInfo<SomeStruct>::get(), &s, value));
@@ -143,7 +145,7 @@ static SlangResult _check()
// Convert back to native
{
- JSONToNativeConverter converter(container, &sink);
+ JSONToNativeConverter converter(container, &typeMap, &sink);
{
SomeStruct readS;