You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AllowSharedBufferSource definition is incorrect #61480
// Before lib=ES2024, this works, though it seems like it shouldn't.constx: AllowSharedBufferSource=newSharedArrayBuffer(4);// The reason is that SharedArrayBuffer is structurally a subtype of ArrayBuffer:consty: ArrayBuffer=newSharedArrayBuffer(4);// However when you switch to lib=ES2024+, it (correctly) doesn't work anymore, because// ArrayBuffer gained some properties that SharedArrayBuffer doesn't have.
Type 'SharedArrayBuffer' is not assignable to type 'AllowSharedBufferSource'.
Type 'SharedArrayBuffer' is missing the following properties from type 'ArrayBuffer': resizable, resize, detached, transfer, transferToFixedLength
Activity