Skip to content

Commit f50e9a1

Browse files
comments fixes
1 parent b6d3a41 commit f50e9a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PyBytesProxyHandler.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
287287
if (id.isString()) {
288288
bool isProperty;
289289

290-
// "length" and byteLength properties have the same value
290+
// "length" and "byteLength" properties have the same value
291291
if (((JS_StringEqualsLiteral(cx, id.toString(), "length", &isProperty) && isProperty) || (JS_StringEqualsLiteral(cx, id.toString(), "byteLength", &isProperty) && isProperty))) {
292292
JS::PersistentRootedObject* arrayBuffer = JS::GetMaybePtrFromReservedSlot<JS::PersistentRootedObject>(proxy, OtherSlot);
293293

@@ -303,7 +303,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
303303
return true;
304304
}
305305

306-
// buffer property
306+
// "buffer" property
307307
if (JS_StringEqualsLiteral(cx, id.toString(), "buffer", &isProperty) && isProperty) {
308308
JS::PersistentRootedObject* arrayBuffer = JS::GetMaybePtrFromReservedSlot<JS::PersistentRootedObject>(proxy, OtherSlot);
309309

@@ -315,7 +315,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
315315
return true;
316316
}
317317

318-
// BYTES_PER_ELEMENT property
318+
// "BYTES_PER_ELEMENT" property
319319
if (JS_StringEqualsLiteral(cx, id.toString(), "BYTES_PER_ELEMENT", &isProperty) && isProperty) {
320320
desc.set(mozilla::Some(
321321
JS::PropertyDescriptor::Data(
@@ -325,7 +325,7 @@ bool PyBytesProxyHandler::getOwnPropertyDescriptor(
325325
return true;
326326
}
327327

328-
// byteOffset property
328+
// "byteOffset" property
329329
if (JS_StringEqualsLiteral(cx, id.toString(), "byteOffset", &isProperty) && isProperty) {
330330
desc.set(mozilla::Some(
331331
JS::PropertyDescriptor::Data(

0 commit comments

Comments
 (0)