mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1079844 - Rename JS_ARRAYBUFFER_NEUTERED_FLAG to use detachment terminology. r=sfink
This commit is contained in:
parent
477cc37aff
commit
39f64bcf63
@ -32,7 +32,7 @@ function IsDetachedBuffer(buffer) {
|
||||
return false;
|
||||
|
||||
var flags = UnsafeGetInt32FromReservedSlot(buffer, JS_ARRAYBUFFER_FLAGS_SLOT);
|
||||
return (flags & JS_ARRAYBUFFER_NEUTERED_FLAG) !== 0;
|
||||
return (flags & JS_ARRAYBUFFER_DETACHED_FLAG) !== 0;
|
||||
}
|
||||
|
||||
function GetAttachedArrayBuffer(tarray) {
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#define JS_ARRAYBUFFER_FLAGS_SLOT 3
|
||||
|
||||
#define JS_ARRAYBUFFER_NEUTERED_FLAG 0x4
|
||||
#define JS_ARRAYBUFFER_DETACHED_FLAG 0x4
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Slots for typed prototypes
|
||||
|
@ -159,7 +159,7 @@ class ArrayBufferObject : public ArrayBufferObjectMaybeShared
|
||||
TYPED_OBJECT_VIEWS = 0x20
|
||||
};
|
||||
|
||||
static_assert(JS_ARRAYBUFFER_NEUTERED_FLAG == DETACHED,
|
||||
static_assert(JS_ARRAYBUFFER_DETACHED_FLAG == DETACHED,
|
||||
"self-hosted code with burned-in constants must use the "
|
||||
"correct DETACHED bit value");
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user