forked from 0ad/0ad
SpiderMonkey 38 upgrade: 23/35
JS_GetArrayBufferData now takes an AutoCheckCannotGC parameter. Patch by leper. Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1061288 This was SVN commit r18677.
This commit is contained in:
parent
c396155ad8
commit
ef6d1c77c8
@ -135,7 +135,8 @@ void CBinarySerializerScriptImpl::HandleScriptVal(JS::HandleValue val)
|
||||
|
||||
u32 length = JS_GetArrayBufferByteLength(obj);
|
||||
m_Serializer.NumberU32_Unbounded("buffer length", length);
|
||||
m_Serializer.RawBytes("buffer data", (const u8*)JS_GetArrayBufferData(obj), length);
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
m_Serializer.RawBytes("buffer data", (const u8*)JS_GetArrayBufferData(obj, nogc), length);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user