Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9468ade

Browse filesBrowse files
whsung0330aduh95
authored andcommitted
typings: add missing properties and method in Worker
PR-URL: #60257 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent f611ec0 commit 9468ade
Copy full SHA for 9468ade

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎typings/internalBinding/worker.d.ts‎

Copy file name to clipboardExpand all lines: typings/internalBinding/worker.d.ts
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ declare namespace InternalWorkerBinding {
1111
);
1212
startThread(): void;
1313
stopThread(): void;
14+
hasRef(): boolean;
1415
ref(): void;
1516
unref(): void;
1617
getResourceLimits(): Float64Array;
@@ -38,7 +39,9 @@ export interface WorkerBinding {
3839
Worker: typeof InternalWorkerBinding.Worker;
3940
getEnvMessagePort(): InternalMessagingBinding.MessagePort;
4041
threadId: number;
42+
threadName: string;
4143
isMainThread: boolean;
44+
isInternalThread: boolean;
4245
ownsProcessState: boolean;
4346
resourceLimits?: Float64Array;
4447
kMaxYoungGenerationSizeMb: number;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.