diff --git a/package-lock.json b/package-lock.json index a11a7e99b0b..92e68724ba0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,7 +77,7 @@ "text-diff": "1.0.1", "tsd": "0.26.0", "tsx": "3.12.3", - "typescript": "4.9.5", + "typescript": "5.0.4", "wireit": "0.9.5", "zod": "3.21.2" } @@ -8889,15 +8889,16 @@ } }, "node_modules/typescript": { - "version": "4.9.5", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "devOptional": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=12.20" } }, "node_modules/unbox-primitive": { @@ -15440,7 +15441,9 @@ "dev": true }, "typescript": { - "version": "4.9.5", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "devOptional": true }, "unbox-primitive": { diff --git a/package.json b/package.json index 508847bcba5..89c5857cf1c 100644 --- a/package.json +++ b/package.json @@ -181,7 +181,7 @@ "text-diff": "1.0.1", "tsd": "0.26.0", "tsx": "3.12.3", - "typescript": "4.9.5", + "typescript": "5.0.4", "wireit": "0.9.5", "zod": "3.21.2" }, diff --git a/packages/puppeteer-core/src/common/bidi/Serializer.ts b/packages/puppeteer-core/src/common/bidi/Serializer.ts index f28b0e73186..8b61c2b4535 100644 --- a/packages/puppeteer-core/src/common/bidi/Serializer.ts +++ b/packages/puppeteer-core/src/common/bidi/Serializer.ts @@ -178,7 +178,6 @@ export class BidiSerializer { case 'NaN': return NaN; case 'Infinity': - case '+Infinity': return Infinity; case '-Infinity': return -Infinity;