Explicitly construct an emscripten::val object with allow_raw_pointers() policy before setting a JS object key to a raw pointer value (#8555)

This commit is contained in:
Paolo Tosco
2025-05-23 17:29:41 +02:00
committed by GitHub
parent 0c70360dab
commit f3cd17ba37

View File

@@ -341,7 +341,7 @@ emscripten::val get_frags_helper(const JSMolBase &self,
const std::string &details) {
auto res = self.get_frags(details);
auto obj = emscripten::val::object();
obj.set("molList", res.first);
obj.set("molList", emscripten::val(res.first, emscripten::allow_raw_pointers()));
obj.set("mappings", res.second);
return obj;
}