@@ -287,7 +287,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
287
287
if (id.isString ()) {
288
288
bool isProperty;
289
289
290
- // "length" and byteLength properties have the same value
290
+ // "length" and " byteLength" properties have the same value
291
291
if (((JS_StringEqualsLiteral (cx, id.toString (), " length" , &isProperty) && isProperty) || (JS_StringEqualsLiteral (cx, id.toString (), " byteLength" , &isProperty) && isProperty))) {
292
292
JS::PersistentRootedObject* arrayBuffer = JS::GetMaybePtrFromReservedSlot<JS::PersistentRootedObject>(proxy, OtherSlot);
293
293
@@ -303,7 +303,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
303
303
return true ;
304
304
}
305
305
306
- // buffer property
306
+ // " buffer" property
307
307
if (JS_StringEqualsLiteral (cx, id.toString (), " buffer" , &isProperty) && isProperty) {
308
308
JS::PersistentRootedObject* arrayBuffer = JS::GetMaybePtrFromReservedSlot<JS::PersistentRootedObject>(proxy, OtherSlot);
309
309
@@ -315,7 +315,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
315
315
return true ;
316
316
}
317
317
318
- // BYTES_PER_ELEMENT property
318
+ // " BYTES_PER_ELEMENT" property
319
319
if (JS_StringEqualsLiteral (cx, id.toString (), " BYTES_PER_ELEMENT" , &isProperty) && isProperty) {
320
320
desc.set (mozilla::Some (
321
321
JS::PropertyDescriptor::Data (
@@ -325,7 +325,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
325
325
return true ;
326
326
}
327
327
328
- // byteOffset property
328
+ // " byteOffset" property
329
329
if (JS_StringEqualsLiteral (cx, id.toString (), " byteOffset" , &isProperty) && isProperty) {
330
330
desc.set (mozilla::Some (
331
331
JS::PropertyDescriptor::Data (
0 commit comments