0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

fix(ext/webgpu): use correct variable name (#27108)

This commit is contained in:
Leo Kettmeir 2024-11-27 10:31:15 -08:00 committed by Bartek Iwańczuk
parent cfd13b0f87
commit 6a5dadf2f6
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -620,7 +620,7 @@ function createGPUSupportedLimits(limits) {
}
function normalizeLimit(limit) {
if (typeof num === "bigint") {
if (typeof limit === "bigint") {
limit = Number(limit);
if (limit === NumberPOSITIVE_INFINITY) {
limit = NumberMAX_SAFE_INTEGER;