Updating the BigInt type conversion behavior for Private Aggregation

Skip to first unread message

Maks Orlovich

Aug 25, 2023, 2:51:41 PM8/25/23
to Shared Storage API announcements

To better align Private Aggregation with standard web practices, the type conversion behavior of BigInt will be updated to match the WebIDL specifications. With the change, the value for bucket and debugKey will be attempted to be converted to a BigInt. For example, setting the bucket of the contributeToHistogram() call to ”123” will be converted to 123n automatically, unlike the previous behavior where an error was thrown. In addition, the exception and error messages on some type errors may also be changed.

The BigInt type conversion behavior will be updated in M117. If you have questions about this change, or negatively affected, open an issue in the Privacy Sandbox Developer Support GitHub repository

Reply all
Reply to author
0 new messages