mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
1c9ba44fc0
commit
d85a0b1f8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user