1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -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 GitHub
parent 6fb0e10252
commit 16e16690af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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