mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1135401 - Do not run js1_8_5/extensions/file-mapped-arraybuffers.js test if memory mapped array buffer is not supported. r=sfink
This commit is contained in:
parent
193771a104
commit
572c09a712
@ -183,6 +183,18 @@ GetBuildConfiguration(JSContext *cx, unsigned argc, jsval *vp)
|
||||
if (!JS_SetProperty(cx, info, "intl-api", value))
|
||||
return false;
|
||||
|
||||
#if defined(XP_WIN)
|
||||
value = BooleanValue(false);
|
||||
#elif defined(SOLARIS)
|
||||
value = BooleanValue(false);
|
||||
#elif defined(XP_UNIX)
|
||||
value = BooleanValue(true);
|
||||
#else
|
||||
value = BooleanValue(false);
|
||||
#endif
|
||||
if (!JS_SetProperty(cx, info, "mapped-array-buffer", value))
|
||||
return false;
|
||||
|
||||
args.rval().setObject(*info);
|
||||
return true;
|
||||
}
|
||||
|
@ -36,5 +36,6 @@ function test() {
|
||||
assertThrows(() => createMappedArrayBuffer("empty.txt", 0, 8), Error);
|
||||
}
|
||||
|
||||
test();
|
||||
if (getBuildConfiguration()["mapped-array-buffer"])
|
||||
test();
|
||||
reportCompare(0, 0, 'ok');
|
||||
|
Loading…
Reference in New Issue
Block a user