{"id":16189839,"url":"https://github.com/benjamingr/v8-natives-api","last_synced_at":"2025-09-24T22:31:18.623Z","repository":{"id":57389976,"uuid":"314879738","full_name":"benjamingr/v8-natives-api","owner":"benjamingr","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-21T18:48:06.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T13:46:36.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benjamingr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-21T18:41:19.000Z","updated_at":"2023-05-31T01:02:16.000Z","dependencies_parsed_at":"2022-09-09T22:10:19.987Z","dependency_job_id":null,"html_url":"https://github.com/benjamingr/v8-natives-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamingr%2Fv8-natives-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamingr%2Fv8-natives-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamingr%2Fv8-natives-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamingr%2Fv8-natives-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjamingr","download_url":"https://codeload.github.com/benjamingr/v8-natives-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234134505,"owners_count":18784840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T07:37:07.945Z","updated_at":"2025-09-24T22:31:13.337Z","avatar_url":"https://github.com/benjamingr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# v8-natives-api\n\nExposes natives functions accessible with the `--allow-natives-syntax` flag as a Node API:\n\n```js\nconst api = require('v8-natives-syntax');\n\napi.HasHoleyElements([1,,,3]); // true\n\napi.OptimizeFunctionOnNextCall(someFunctionToOptimize);\n```\n\n### Warning\n\nThe API here may break at any moment should V8 choose to change the internal functions.\n\n## Current function list\n\n```js\nconst methodNames = [\n  'Abort',\n  'AbortJS',\n  'AbortCSAAssert',\n  'ArraySpeciesProtector',\n  'ClearFunctionFeedback',\n  'ClearMegamorphicStubCache',\n  'CompleteInobjectSlackTracking',\n  'ConstructConsString',\n  'ConstructDouble',\n  'ConstructSlicedString',\n  'DebugPrint',\n  'DebugPrintPtr',\n  'DebugTrace',\n  'DebugTrackRetainingPath',\n  'DeoptimizeFunction',\n  'DeserializeWasmModule',\n  'DisallowCodegenFromStrings',\n  'DisallowWasmCodegen',\n  'DisassembleFunction',\n  'DynamicMapChecksEnabled',\n  'EnableCodeLoggingForTesting',\n  'EnsureFeedbackVectorForFunction',\n  'FreezeWasmLazyCompilation',\n  'GetCallable',\n  'GetInitializerFunction',\n  'GetOptimizationStatus',\n  'GetUndetectable',\n  'GetWasmExceptionId',\n  'GetWasmExceptionValues',\n  'GetWasmRecoveredTrapCount',\n  'GlobalPrint',\n  'HasDictionaryElements',\n  'HasDoubleElements',\n  'HasElementsInALargeObjectSpace',\n  'HasFastElements',\n  'HasFastProperties',\n  'HasFixedBigInt64Elements',\n  'HasFixedBigUint64Elements',\n  'HasFixedFloat32Elements',\n  'HasFixedFloat64Elements',\n  'HasFixedInt16Elements',\n  'HasFixedInt32Elements',\n  'HasFixedInt8Elements',\n  'HasFixedUint16Elements',\n  'HasFixedUint32Elements',\n  'HasFixedUint8ClampedElements',\n  'HasFixedUint8Elements',\n  'HasHoleyElements',\n  'HasObjectElements',\n  'HasPackedElements',\n  'HasSloppyArgumentsElements',\n  'HasSmiElements',\n  'HasSmiOrObjectElements',\n  'HaveSameMap',\n  'HeapObjectVerify',\n  'ICsAreEnabled',\n  'InYoungGeneration',\n  'IsAsmWasmCode',\n  'IsBeingInterpreted',\n  'IsConcurrentRecompilationSupported',\n  'IsLiftoffFunction',\n  'IsThreadInWasm',\n  'IsWasmCode',\n  'IsWasmTrapHandlerEnabled',\n  'RegexpHasBytecode',\n  'RegexpHasNativeCode',\n  'RegexpTypeTag',\n  'MapIteratorProtector',\n  'NeverOptimizeFunction',\n  'NotifyContextDisposed',\n  'OptimizeFunctionOnNextCall',\n  'OptimizeOsr',\n  'NewRegExpWithBacktrackLimit',\n  'PrepareFunctionForOptimization',\n  'PrintWithNameForAssert',\n  'RunningInSimulator',\n  'RuntimeEvaluateREPL',\n  'SerializeDeserializeNow',\n  'SerializeWasmModule',\n  'SetAllocationTimeout',\n  'SetForceSlowPath',\n  'SetIteratorProtector',\n  'SetWasmCompileControls',\n  'SetWasmInstantiateControls',\n  'SetWasmThreadsEnabled',\n  'SimulateNewspaceFull',\n  'StringIteratorProtector',\n  'SystemBreak',\n  'TraceEnter',\n  'TraceExit',\n  'TurbofanStaticAssert',\n  'UnblockConcurrentRecompilation',\n  'WasmGetNumberOfInstances',\n  'WasmNumCodeSpaces',\n  'WasmTierDownModule',\n  'WasmTierUpFunction',\n  'WasmTierUpModule',\n  'WasmTraceEnter',\n  'WasmTraceExit',\n  'WasmTraceMemory',\n  'DeoptimizeNow',\n  // Strings\n  'FlattenString',\n  'GetSubstitution',\n  'InternalizeString',\n  'StringAdd',\n  'StringBuilderConcat',\n  'StringCharCodeAt',\n  'StringEqual',\n  'StringEscapeQuotes',\n  'StringGreaterThan',\n  'StringGreaterThanOrEqual',\n  'StringIncludes',\n  'StringIndexOf',\n  'StringIndexOfUnchecked',\n  'StringLastIndexOf',\n  'StringLessThan',\n  'StringLessThanOrEqual',\n  'StringMaxLength',\n  'StringReplaceOneCharWithString',\n  'StringCompareSequence',\n  'StringSubstring',\n  'StringToArray',\n  'StringTrim',\n];\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamingr%2Fv8-natives-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjamingr%2Fv8-natives-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamingr%2Fv8-natives-api/lists"}