mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00: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
53e3dc9ef2
commit
6134ad7194
@ -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