forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaScriptObjectKind.cs
More file actions
63 lines (55 loc) · 2.31 KB
/
JavaScriptObjectKind.cs
File metadata and controls
63 lines (55 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.ClearScript.JavaScript
{
/// <summary>
/// Defines JavaScript object kinds.
/// </summary>
public enum JavaScriptObjectKind
{
/// <summary>
/// Indicates that the object is generic or of an unknown kind.
/// </summary>
Unknown,
/// <summary>
/// Indicates that the object is a
/// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions">function</see>.
/// </summary>
Function,
/// <summary>
/// Indicates that the object is an
/// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols">iterator</see>.
/// </summary>
Iterator,
/// <summary>
/// Indicates that the object is a
/// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">promise</see>.
/// </summary>
Promise,
/// <summary>
/// Indicates that the object is an
/// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">array</see>
/// and implements
/// <c><see href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.ilist">IList</see></c>.
/// </summary>
Array,
/// <summary>
/// Indicates that the object is an
/// <c><see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer">ArrayBuffer</see></c>
/// and implements <c><see cref="IArrayBuffer"/></c>.
/// </summary>
ArrayBuffer,
/// <summary>
/// Indicates that the object is a
/// <c><see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView">DataView</see></c>
/// and implements <c><see cref="IDataView"/></c>.
/// </summary>
DataView,
/// <summary>
/// Indicates that the object is a
/// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays">typed array</see>
/// and implements <c><see cref="ITypedArray{T}"/></c>.
/// </summary>
TypedArray
}
}