mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 537873: Use the standard JS_PropertyStub for setters of typed arrays' read-only properties, not a Jsvalification of the getters. r=brendan
This makes the patch to give getters and setters distinct types a little easier to read.
This commit is contained in:
parent
ed912e0cbe
commit
ee9e782e65
@ -1454,7 +1454,7 @@ Class ArrayBuffer::jsclass = {
|
||||
JSPropertySpec ArrayBuffer::jsprops[] = {
|
||||
{ "byteLength",
|
||||
-1, JSPROP_SHARED | JSPROP_PERMANENT | JSPROP_READONLY,
|
||||
Jsvalify(ArrayBuffer::prop_getByteLength), Jsvalify(ArrayBuffer::prop_getByteLength) },
|
||||
Jsvalify(ArrayBuffer::prop_getByteLength), JS_PropertyStub },
|
||||
{0,0,0,0,0}
|
||||
};
|
||||
|
||||
@ -1465,16 +1465,16 @@ JSPropertySpec ArrayBuffer::jsprops[] = {
|
||||
JSPropertySpec TypedArray::jsprops[] = {
|
||||
{ js_length_str,
|
||||
-1, JSPROP_SHARED | JSPROP_PERMANENT | JSPROP_READONLY,
|
||||
Jsvalify(TypedArray::prop_getLength), Jsvalify(TypedArray::prop_getLength) },
|
||||
Jsvalify(TypedArray::prop_getLength), JS_PropertyStub },
|
||||
{ "byteLength",
|
||||
-1, JSPROP_SHARED | JSPROP_PERMANENT | JSPROP_READONLY,
|
||||
Jsvalify(TypedArray::prop_getByteLength), Jsvalify(TypedArray::prop_getByteLength) },
|
||||
Jsvalify(TypedArray::prop_getByteLength), JS_PropertyStub },
|
||||
{ "byteOffset",
|
||||
-1, JSPROP_SHARED | JSPROP_PERMANENT | JSPROP_READONLY,
|
||||
Jsvalify(TypedArray::prop_getByteOffset), Jsvalify(TypedArray::prop_getByteOffset) },
|
||||
Jsvalify(TypedArray::prop_getByteOffset), JS_PropertyStub },
|
||||
{ "buffer",
|
||||
-1, JSPROP_SHARED | JSPROP_PERMANENT | JSPROP_READONLY,
|
||||
Jsvalify(TypedArray::prop_getBuffer), Jsvalify(TypedArray::prop_getBuffer) },
|
||||
Jsvalify(TypedArray::prop_getBuffer), JS_PropertyStub },
|
||||
{0,0,0,0,0}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user