JsScriptOrModule Class

A script or a module: the [[ScriptOrModule]] of the running code (https://tc39.es/ecma262/#sec-getactivescriptormodule).

public abstract class JsScriptOrModule

Properties

NameDescription
HostDefinedGets the data of the host associated with the script or the module ([[HostDefined]]).
RealmGets the realm the script or the module was created in ([[Realm]]).
UrlGets the URL (or the file name) of the script or the module.

Gets the data of the host associated with the script or the module ([[HostDefined]]).

public object? HostDefined { get; }

Property value

object?

Gets the realm the script or the module was created in ([[Realm]]).

public JsRealm Realm { get; }

Property value

JsRealm

Gets the URL (or the file name) of the script or the module.

public string? Url { get; }

Property value

string?