1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 01:58:05 -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) {
if (typeof num === "bigint") {
if (typeof limit === "bigint") {
limit = Number(limit);
if (limit === NumberPOSITIVE_INFINITY) {
limit = NumberMAX_SAFE_INTEGER;