Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2.6 KiB
sidebar_label
| sidebar_label |
|---|
| Realm |
Realm class
Signature
export declare abstract class Realm
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Realm class.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
origin |
|
string | undefined |
(Experimental) Returns the origin that created the Realm. For example, if the realm was created by an extension content script, this will return the origin of the extension (e.g., |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Evaluates a function in the realm's context and returns the resulting value. If the function passed to JSHandle instances can be passed as arguments to the function. | ||
|
Evaluates a function in the realm's context and returns a JSHandle to the result. If the function passed to JSHandle instances can be passed as arguments to the function. | ||
|
(Experimental) Returns the Extension that created this realm, if applicable. This is typically populated when the realm was created by an extension content script injected into a page. | ||
|
Waits for a function to return a truthy value when evaluated in the realm's context. Arguments can be passed from Node.js to |