mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user