예제 #1
0
 internal static extern JavaScriptErrorCode JsGetAndClearException(out JavaScriptValue exception);
예제 #2
0
 internal static extern JavaScriptErrorCode JsCallFunction(JavaScriptValue function, JavaScriptValue[] arguments, ushort argumentCount, out JavaScriptValue result);
예제 #3
0
 internal static extern JavaScriptErrorCode JsCreateFunction(JavaScriptNativeFunction nativeFunction, IntPtr externalData, out JavaScriptValue function);
예제 #4
0
 internal static extern JavaScriptErrorCode JsStrictEquals(JavaScriptValue obj1, JavaScriptValue obj2, out bool result);
예제 #5
0
 internal static extern JavaScriptErrorCode JsSetExternalData(JavaScriptValue obj, IntPtr externalData);
예제 #6
0
 internal static extern JavaScriptErrorCode JsHasIndexedProperty(JavaScriptValue obj, JavaScriptValue index, out bool result);
예제 #7
0
 internal static extern JavaScriptErrorCode JsSetIndexedProperty(JavaScriptValue obj, JavaScriptValue index, JavaScriptValue value);
예제 #8
0
 internal static extern JavaScriptErrorCode JsConvertValueToObject(JavaScriptValue value, out JavaScriptValue obj);
예제 #9
0
 internal static extern JavaScriptErrorCode JsSetPrototype(JavaScriptValue obj, JavaScriptValue prototypeObject);
예제 #10
0
 internal static extern JavaScriptErrorCode JsCreateObject(out JavaScriptValue obj);
예제 #11
0
 internal static extern JavaScriptErrorCode JsCreateExternalObject(IntPtr data, JavaScriptObjectFinalizeCallback finalizeCallback, out JavaScriptValue obj);
예제 #12
0
 internal static extern JavaScriptErrorCode JsGetGlobalObject(out JavaScriptValue globalObject);
예제 #13
0
 internal static extern JavaScriptErrorCode JsValueToVariant(JavaScriptValue obj, out object var);
예제 #14
0
 internal static extern JavaScriptErrorCode JsVariantToValue(ref object var, out JavaScriptValue value);
 /// <summary>
 ///     Initializes a new instance of the <see cref="JavaScriptScriptException"/> class.
 /// </summary>
 /// <param name="code">The error code returned.</param>
 /// <param name="error">The JavaScript error object.</param>
 /// <param name="message">The error message.</param>
 public JavaScriptScriptException(JavaScriptErrorCode code, JavaScriptValue error, string message) :
     base(code, message)
 {
     this.error = error;
 }
예제 #16
0
 internal static extern JavaScriptErrorCode JsGetExtensionAllowed(JavaScriptValue obj, out bool value);
예제 #17
0
 internal static extern JavaScriptErrorCode JsDefineProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, JavaScriptValue propertyDescriptor, out bool result);
예제 #18
0
 internal static extern JavaScriptErrorCode JsPreventExtension(JavaScriptValue obj);
예제 #19
0
 internal static extern JavaScriptErrorCode JsGetIndexedProperty(JavaScriptValue obj, JavaScriptValue index, out JavaScriptValue result);
예제 #20
0
 internal static extern JavaScriptErrorCode JsGetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue value);
예제 #21
0
 internal static extern JavaScriptErrorCode JsDeleteIndexedProperty(JavaScriptValue obj, JavaScriptValue index);
예제 #22
0
 internal static extern JavaScriptErrorCode JsGetOwnPropertyDescriptor(JavaScriptValue obj, JavaScriptPropertyId propertyId, out JavaScriptValue propertyDescriptor);
예제 #23
0
 internal static extern JavaScriptErrorCode JsHasExternalData(JavaScriptValue obj, out bool value);
예제 #24
0
 internal static extern JavaScriptErrorCode JsGetOwnPropertyNames(JavaScriptValue obj, out JavaScriptValue propertyNames);
예제 #25
0
 internal static extern JavaScriptErrorCode JsCreateArray(uint length, out JavaScriptValue result);
예제 #26
0
 internal static extern JavaScriptErrorCode JsSetProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, JavaScriptValue value, bool useStrictRules);
예제 #27
0
 internal static extern JavaScriptErrorCode JsConstructObject(JavaScriptValue function, JavaScriptValue[] arguments, ushort argumentCount, out JavaScriptValue result);
예제 #28
0
 internal static extern JavaScriptErrorCode JsHasProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, out bool hasProperty);
예제 #29
0
 internal static extern JavaScriptErrorCode JsCreateURIError(JavaScriptValue message, out JavaScriptValue error);
예제 #30
0
 internal static extern JavaScriptErrorCode JsDeleteProperty(JavaScriptValue obj, JavaScriptPropertyId propertyId, bool useStrictRules, out JavaScriptValue result);
예제 #31
0
 internal static extern JavaScriptErrorCode JsSetException(JavaScriptValue exception);
 /// <summary>
 ///     Initializes a new instance of the <see cref="JavaScriptScriptException"/> class.
 /// </summary>
 /// <param name="code">The error code returned.</param>
 /// <param name="error">The JavaScript error object.</param>
 public JavaScriptScriptException(JavaScriptErrorCode code, JavaScriptValue error) :
     this(code, error, "JavaScript Exception")
 {
 }