From 196396080c91d4d1b59630b7234d727c57421fa0 Mon Sep 17 00:00:00 2001 From: kshitijanurag Date: Sun, 1 Mar 2026 01:49:34 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74608=20[@types/no?= =?UTF-8?q?de]:=20Rename=20`startCPUProfile()`=20to=20`startCpuProfile()`?= =?UTF-8?q?=20in=20`node:v8`=20by=20@kshitijanurag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/node/node-tests/v8.ts | 2 +- types/node/v8.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/node/node-tests/v8.ts b/types/node/node-tests/v8.ts index 9d005a31f1d429..b0a1bcc44b8768 100644 --- a/types/node/node-tests/v8.ts +++ b/types/node/node-tests/v8.ts @@ -95,6 +95,6 @@ v8.deserialize("Hello World!"); v8.isStringOneByteRepresentation("你好"); // $ExpectType boolean { - using profile: v8.SyncCPUProfileHandle = v8.startCPUProfile(); + using profile: v8.SyncCPUProfileHandle = v8.startCpuProfile(); profile.stop(); // $ExpectType string } diff --git a/types/node/v8.d.ts b/types/node/v8.d.ts index 022dc01a154884..632552b6f7a0eb 100644 --- a/types/node/v8.d.ts +++ b/types/node/v8.d.ts @@ -463,7 +463,7 @@ declare module "node:v8" { * ``` * @since v25.0.0 */ - function startCPUProfile(): SyncCPUProfileHandle; + function startCpuProfile(): SyncCPUProfileHandle; /** * V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string. * If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;