MCPcopy Create free account
hub / github.com/UI5/webcomponents / registerCurrentRuntime

Function registerCurrentRuntime

packages/base/src/Runtimes.ts:27–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 * Registers the current runtime in the shared runtimes resource registry
26 */
27const registerCurrentRuntime = () => {
28 if (currentRuntimeIndex === undefined) {
29 currentRuntimeIndex = Runtimes.length;
30 const versionInfo = VersionInfo;
31
32 Runtimes.push({
33 ...versionInfo,
34 get scopingSuffix() {
35 return getCustomElementsScopingSuffix();
36 },
37 get registeredTags() {
38 return getAllRegisteredTags();
39 },
40 get scopingRules() {
41 return getCustomElementsScopingRules();
42 },
43 alias: currentRuntimeAlias,
44 description: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : ""}`,
45 importMetaUrl: import.meta.url,
46 });
47 }
48};
49
50/**
51 * Returns the index of the current runtime's object in the shared runtimes resource registry

Callers 1

bootExecutorFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…