mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-07 08:33:50 +08:00
Merge main
This commit is contained in:
@@ -56,12 +56,15 @@ export interface EarlyExecutableNativeFeatures {
|
||||
fileHandle: boolean;
|
||||
fetch: boolean;
|
||||
eventTarget?: boolean;
|
||||
warningReplace?: boolean;
|
||||
stdioExtended?: boolean;
|
||||
zlib: boolean;
|
||||
assert: boolean;
|
||||
inspect: boolean;
|
||||
dynInvoke: boolean;
|
||||
dc: boolean;
|
||||
dynAsync: boolean;
|
||||
dynTier?: boolean;
|
||||
events: boolean;
|
||||
emitter: boolean;
|
||||
symbol: boolean;
|
||||
@@ -81,6 +84,7 @@ export interface EarlyExecutableNativeFeatures {
|
||||
tls: boolean;
|
||||
cipher: boolean;
|
||||
tlsCa: boolean;
|
||||
webcrypto: boolean;
|
||||
}
|
||||
|
||||
interface EarlyExecutableCacheStamp {
|
||||
@@ -195,6 +199,7 @@ const BOOLEAN_NATIVE_KEYS = [
|
||||
"tls",
|
||||
"tlsCa",
|
||||
"cipher",
|
||||
"webcrypto",
|
||||
] as const satisfies readonly (keyof EarlyExecutableNativeFeatures)[];
|
||||
|
||||
function validNativeFeatures(value: unknown): value is EarlyExecutableNativeFeatures {
|
||||
|
||||
Reference in New Issue
Block a user