@@ -165,7 +165,11 @@ export const transferBufferToImmutable = (buffer, newLength = undefined) => {
165
165
166
166
export const isBufferImmutable = buffer => {
167
167
try {
168
- // @ts -expect-error Getter should be typed as this-sensitive
168
+ // TODO The following directive line should either be removed or
169
+ // turned back into an at-ts-expect-error. We made it into an
170
+ // at-ts-ignore because we were getting inconsistent reports.
171
+ // See https://github.com/endojs/endo/pull/2673#issuecomment-2566711810
172
+ // @ts -ignore Getter should be typed as this-sensitive
169
173
return apply ( isImmutableGetter , buffer , [ ] ) ;
170
174
} catch ( err ) {
171
175
if ( err instanceof TypeError ) {
@@ -179,7 +183,11 @@ export const isBufferImmutable = buffer => {
179
183
180
184
const sliceBuffer = ( buffer , start = undefined , end = undefined ) => {
181
185
try {
182
- // @ts -expect-error We know it is really there
186
+ // TODO The following directive line should either be removed or
187
+ // turned back into an at-ts-expect-error. We made it into an
188
+ // at-ts-ignore because we were getting inconsistent reports.
189
+ // See https://github.com/endojs/endo/pull/2673#issuecomment-2566711810
190
+ // @ts -ignore We know it is really there
183
191
return apply ( sliceOfImmutable , buffer , [ start , end ] ) ;
184
192
} catch ( err ) {
185
193
if ( err instanceof TypeError ) {
0 commit comments