Bug 1581005 - Detect UBSan support via getBuildConfiguration in TestingFunctions.cpp, r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D45767

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gary Kwong 2019-09-17 08:03:28 +00:00
parent 1c9ba44fc0
commit d85a0b1f8f

View File

@ -318,6 +318,15 @@ static bool GetBuildConfiguration(JSContext* cx, unsigned argc, Value* vp) {
return false;
}
#ifdef MOZ_UBSAN
value = BooleanValue(true);
#else
value = BooleanValue(false);
#endif
if (!JS_SetProperty(cx, info, "ubsan", value)) {
return false;
}
#ifdef JS_GC_ZEAL
value = BooleanValue(true);
#else