The JavaScript value
The JavaScript value is one of the following types of values: Undefined, Null, Boolean, String, Number, or Object.
コード例 #1
0
 internal static extern JsErrorCode JsSetException(JsValue exception);
コード例 #2
0
		internal static extern JsErrorCode JsGetSymbolFromPropertyId(JsPropertyId propertyId, out JsValue symbol);
コード例 #3
0
		internal static extern JsErrorCode JsGetUndefinedValue(out JsValue undefinedValue);
コード例 #4
0
		internal static extern JsErrorCode JsRunSerializedScriptWithCallback(
			JsSerializedScriptLoadSourceCallback scriptLoadCallback,
			JsSerializedScriptUnloadCallback scriptUnloadCallback, byte[] buffer,
			JsSourceContext sourceContext, string sourceUrl, out JsValue result);
コード例 #5
0
		internal static extern JsErrorCode JsAddRef(JsValue reference, out uint count);
コード例 #6
0
		internal static extern JsErrorCode JsGetAndClearException(out JsValue exception);
コード例 #7
0
		internal static extern JsErrorCode JsRun(JsValue script, JsSourceContext sourceContext, JsValue sourceUrl,
			JsParseScriptAttributes parseAttributes, out JsValue result);
コード例 #8
0
 internal static extern JsErrorCode JsRunScript(string script, JsSourceContext sourceContext,
                                                string sourceUrl, out JsValue result);
コード例 #9
0
 internal static extern JsErrorCode JsRunSerializedScriptWithCallback(
     JsSerializedScriptLoadSourceCallback scriptLoadCallback,
     JsSerializedScriptUnloadCallback scriptUnloadCallback, byte[] buffer,
     JsSourceContext sourceContext, string sourceUrl, out JsValue result);
コード例 #10
0
 internal static extern JsErrorCode JsSerialize(JsValue script, out JsValue buffer,
                                                JsParseScriptAttributes parseAttributes);
コード例 #11
0
 internal static extern JsErrorCode JsRunSerialized(JsValue buffer,
                                                    JsSerializedLoadScriptCallback scriptLoadCallback, JsSourceContext sourceContext,
                                                    JsValue sourceUrl, out JsValue result);
コード例 #12
0
 internal static extern JsErrorCode JsRun(JsValue script, JsSourceContext sourceContext, JsValue sourceUrl,
                                          JsParseScriptAttributes parseAttributes, out JsValue result);
コード例 #13
0
 internal static extern JsErrorCode JsCopyString(JsValue value, byte[] buffer, UIntPtr bufferSize,
                                                 out UIntPtr written);
コード例 #14
0
 internal static extern JsErrorCode JsCreateString(string content, UIntPtr length, out JsValue value);
コード例 #15
0
		internal static extern JsErrorCode JsCreateFunction(JsNativeFunction nativeFunction, IntPtr externalData,
			out JsValue function);
コード例 #16
0
 internal static extern JsErrorCode JsRunSerializedScript(string script, byte[] buffer,
                                                          JsSourceContext sourceContext, string sourceUrl, out JsValue result);
コード例 #17
0
		internal static extern JsErrorCode JsCreateReferenceError(JsValue message, out JsValue error);
コード例 #18
0
 internal static extern JsErrorCode JsPointerToString(string value, UIntPtr stringLength,
                                                      out JsValue stringValue);
コード例 #19
0
		internal static extern JsErrorCode JsCreateStringUtf8(string content, UIntPtr length, out JsValue value);
コード例 #20
0
 internal static extern JsErrorCode JsStringToPointer(JsValue value, out IntPtr stringValue,
                                                      out UIntPtr stringLength);
コード例 #21
0
		internal static extern JsErrorCode JsRunSerialized(JsValue buffer,
			JsSerializedLoadScriptCallback scriptLoadCallback, JsSourceContext sourceContext,
			JsValue sourceUrl, out JsValue result);
コード例 #22
0
 internal static extern JsErrorCode JsAddRef(JsValue reference, out uint count);
コード例 #23
0
		internal static extern JsErrorCode JsPointerToString(string value, UIntPtr stringLength,
			out JsValue stringValue);
コード例 #24
0
 internal static extern JsErrorCode JsRelease(JsValue reference, out uint count);
コード例 #25
0
		internal static extern JsErrorCode JsSetObjectBeforeCollectCallback(JsValue reference, IntPtr callbackState,
			JsObjectBeforeCollectCallback beforeCollectCallback);
コード例 #26
0
 internal static extern JsErrorCode JsSetObjectBeforeCollectCallback(JsValue reference, IntPtr callbackState,
                                                                     JsObjectBeforeCollectCallback beforeCollectCallback);
コード例 #27
0
		internal static extern JsErrorCode JsCreateSymbol(JsValue description, out JsValue symbol);
コード例 #28
0
 internal static extern JsErrorCode JsGetContextOfObject(JsValue obj, out JsContext context);
コード例 #29
0
		/// <summary>
		/// Initializes a new instance of the <see cref="JsScriptException"/> class
		/// </summary>
		/// <param name="errorCode">The error code returned</param>
		/// <param name="error">The JavaScript error object</param>
		public JsScriptException(JsErrorCode errorCode, JsValue error)
			: this(errorCode, error, "JavaScript Exception")
		{ }
コード例 #30
0
 internal static extern JsErrorCode JsGetSymbolFromPropertyId(JsPropertyId propertyId, out JsValue symbol);
コード例 #31
0
		internal static extern JsErrorCode JsConstructObject(JsValue function, JsValue[] arguments,
			ushort argumentCount, out JsValue result);
コード例 #32
0
 internal static extern JsErrorCode JsGetPropertyIdFromSymbol(JsValue symbol, out JsPropertyId propertyId);
コード例 #33
0
		internal static extern JsErrorCode JsCreateNamedFunction(JsValue name, JsNativeFunction nativeFunction,
			IntPtr callbackState, out JsValue function);
コード例 #34
0
 internal static extern JsErrorCode JsCreateSymbol(JsValue description, out JsValue symbol);
コード例 #35
0
		internal static extern JsErrorCode JsCreateURIError(JsValue message, out JsValue error);
コード例 #36
0
 internal static extern JsErrorCode JsGetOwnPropertySymbols(JsValue obj, out JsValue propertySymbols);
コード例 #37
0
		internal static extern JsErrorCode JsSetException(JsValue exception);
コード例 #38
0
 internal static extern JsErrorCode JsGetUndefinedValue(out JsValue undefinedValue);
コード例 #39
0
		internal static extern JsErrorCode JsCopyStringUtf8(JsValue value, byte[] buffer, UIntPtr bufferSize,
			out UIntPtr written);
コード例 #40
0
 internal static extern JsErrorCode JsGetNullValue(out JsValue nullValue);
コード例 #41
0
		internal static extern JsErrorCode JsSerialize(JsValue script, out JsValue buffer,
			JsParseScriptAttributes parseAttributes);
コード例 #42
0
 internal static extern JsErrorCode JsGetTrueValue(out JsValue trueValue);
コード例 #43
0
		internal static extern JsErrorCode JsRunScript(string script, JsSourceContext sourceContext,
			string sourceUrl, out JsValue result);
コード例 #44
0
 internal static extern JsErrorCode JsGetFalseValue(out JsValue falseValue);
コード例 #45
0
		internal static extern JsErrorCode JsRunSerializedScript(string script, byte[] buffer,
			JsSourceContext sourceContext, string sourceUrl, out JsValue result);
コード例 #46
0
 internal static extern JsErrorCode JsBoolToBoolean(bool value, out JsValue booleanValue);
コード例 #47
0
		internal static extern JsErrorCode JsStringToPointer(JsValue value, out IntPtr stringValue,
			out UIntPtr stringLength);
コード例 #48
0
 internal static extern JsErrorCode JsBooleanToBool(JsValue booleanValue, out bool boolValue);
コード例 #49
0
		internal static extern JsErrorCode JsRelease(JsValue reference, out uint count);
コード例 #50
0
 internal static extern JsErrorCode JsConvertValueToBoolean(JsValue value, out JsValue booleanValue);
コード例 #51
0
		internal static extern JsErrorCode JsGetContextOfObject(JsValue obj, out JsContext context);
コード例 #52
0
 internal static extern JsErrorCode JsGetValueType(JsValue value, out JsValueType type);
コード例 #53
0
		internal static extern JsErrorCode JsGetPropertyIdFromSymbol(JsValue symbol, out JsPropertyId propertyId);
コード例 #54
0
 internal static extern JsErrorCode JsDoubleToNumber(double doubleValue, out JsValue value);
コード例 #55
0
		internal static extern JsErrorCode JsGetOwnPropertySymbols(JsValue obj, out JsValue propertySymbols);
コード例 #56
0
 internal static extern JsErrorCode JsIntToNumber(int intValue, out JsValue value);
コード例 #57
0
		internal static extern JsErrorCode JsGetNullValue(out JsValue nullValue);
コード例 #58
0
		internal static extern JsErrorCode JsCallFunction(JsValue function, JsValue[] arguments,
			ushort argumentCount, out JsValue result);
コード例 #59
0
		/// <summary>
		/// Initializes a new instance of the <see cref="JsScriptException"/> class
		/// with a specified error message
		/// </summary>
		/// <param name="errorCode">The error code returned</param>
		/// <param name="error">The JavaScript error object</param>
		/// <param name="message">The error message</param>
		public JsScriptException(JsErrorCode errorCode, JsValue error, string message)
			: base(errorCode, message)
		{
			_error = error;
		}
コード例 #60
0
 internal static extern JsErrorCode JsGetAndClearExceptionWithMetadata(out JsValue metadata);