LocalValue

Described in https://w3c.github.io/webdriver-bidi/#type-script-LocalValue

Constructor

new LocalValue()

Methods

(static) createArrayValue(value) → {LocalValue}

Creates a new LocalValue object with an array.

Parameters:
NameTypeDescription
valueArray

The array.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createBigIntValue(value) → {LocalValue}

Creates a new LocalValue object with a BigInt value.

Parameters:
NameTypeDescription
valueBigInt

The BigInt value.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createBooleanValue(value) → {LocalValue}

Creates a new LocalValue object with a boolean value.

Parameters:
NameTypeDescription
valueboolean

The boolean value.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createChannelValue(value) → {LocalValue}

Creates a new LocalValue object with the given channel value

Parameters:
NameTypeDescription
valueChannelValue

The channel value.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createDateValue(value) → {LocalValue}

Creates a new LocalValue object with date value.

Parameters:
NameTypeDescription
valuestring

The date.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createMapValue(map) → {LocalValue}

Creates a new LocalValue object of map value.

Parameters:
NameTypeDescription
mapMap

The map.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createNullValue() → {LocalValue}

Creates a new LocalValue object with a null value.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createNumberValue(value) → {LocalValue}

Creates a new LocalValue object with a number value.

Parameters:
NameTypeDescription
valuenumber

The number value.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createObjectValue(map) → {LocalValue}

Creates a new LocalValue object from the passed object.

Parameters:
NameTypeDescription
mapObject

The object.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createRegularExpressionValue(value) → {LocalValue}

Creates a new LocalValue object of regular expression value.

Parameters:
NameTypeDescription
valuestring

The value of the regular expression.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createSetValue(value) → {LocalValue}

Creates a new LocalValue object with the specified value.

Parameters:
NameTypeDescription
valueSet

The value to be set.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createSpecialNumberValue(value) → {LocalValue}

Creates a new LocalValue object with a special number value.

Parameters:
NameTypeDescription
valuenumber

The value of the special number.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createStringValue(value) → {LocalValue}

Creates a new LocalValue object with a string value.

Parameters:
NameTypeDescription
valuestring

The string value to be stored in the LocalValue object.

Returns:
  • The created LocalValue object.
Type: 
LocalValue

(static) createUndefinedValue() → {LocalValue}

Creates a new LocalValue object with an undefined value.

Returns:
  • The created LocalValue object.
Type: 
LocalValue