Method | Description | |
---|---|---|
Add ( object left, object right ) : object |
Adds two objects together, as if by the javascript addition operator.
|
|
EnumeratePropertyNames ( ScriptEngine engine, object obj ) : IEnumerable |
Enumerates the names of the enumerable properties on the given object, including properties defined on the object's prototype. Used by the for-in statement.
|
|
GetIterator ( ScriptEngine engine, |
Converts an iteratable object into a iterator by looking up the @@iterator property, then calling that value as a function.
|
|
IsNegativeZero ( double value ) : bool |
Determines if the given number is negative zero.
|
|
IsPositiveZero ( double value ) : bool |
Determines if the given number is positive zero.
|
|
IsPrimitive ( object value ) : bool |
Determines if the given value is a supported JavaScript primitive.
|
|
IsPrimitiveOrObject ( object value ) : bool |
Determines if the given value is a supported JavaScript primitive or derives from ObjectInstance.
|
|
IsRegularExpression ( object value ) : bool |
Determines if the given value is a regular expression.
|
|
Iterate ( ScriptEngine engine, |
Iterate over the values in an iterator.
|
|
TypeOf ( object obj ) : string |
Gets the type name for the given object. Used by the typeof operator.
|
|
VerifyThisObject ( ScriptEngine engine, object value, string functionName ) : void |
Throws a TypeError when the given value is
|
Method | Description | |
---|---|---|
IsNumeric ( object obj ) : bool |
Returns
|
|
IsString ( object obj ) : bool |
Returns
|
|
IsUndefined ( object obj ) : bool |
Returns
|
|
NormalizeValue ( object obj ) : object |
Converts the given value into a standard .NET type, suitable for returning from an API.
|
|
SliceArray ( object args, int offset ) : object[] |
Utility method for create a slice of an array.
|
public static Add ( object left, object right ) : object | ||
left | object | The left hand side operand. |
right | object | The right hand side operand. |
return | object |
public static EnumeratePropertyNames ( ScriptEngine engine, object obj ) : IEnumerable |
||
engine | ScriptEngine | The script engine used to convert the given value to an object. |
obj | object | The object to enumerate. |
return | IEnumerable |
public static GetIterator ( ScriptEngine engine, |
||
engine | ScriptEngine | The script engine. |
iterable | The object to get a iterator from. | |
return |
public static IsNegativeZero ( double value ) : bool | ||
value | double | The value to test. |
return | bool |
public static IsPositiveZero ( double value ) : bool | ||
value | double | The value to test. |
return | bool |
public static IsPrimitive ( object value ) : bool | ||
value | object | The value to test. |
return | bool |
public static IsPrimitiveOrObject ( object value ) : bool | ||
value | object | The value to test. |
return | bool |
public static IsRegularExpression ( object value ) : bool | ||
value | object | The value to test. |
return | bool |
public static Iterate ( ScriptEngine engine, |
||
engine | ScriptEngine | The script engine. |
iterator | The iterator object. Must contain a next function. | |
return | IEnumerable |
public static TypeOf ( object obj ) : string | ||
obj | object | The object to get the type name for. |
return | string |
public static VerifyThisObject ( ScriptEngine engine, object value, string functionName ) : void | ||
engine | ScriptEngine | The associated script engine. |
value | object | The value to check. |
functionName | string | The name of the function which is doing the check. |
return | void |