Assertion failure: js::GetObjectCompartment(obj) != js::GetContextCompartment(cx) (This should be invoked after entering the compartment but before wrapping the values), at /home/uj/coding/projects/firefox/firefox-51.0.1/js/xpconnect/src/ExportHelpers.cpp:296