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:
Jim Blandy 2011-02-09 11:31:39 -08:00
parent ed912e0cbe
commit ee9e782e65

View File

@ -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}
};