Skip to content

Commit ad00098

Browse files
committed
Uncomment some piece of code in GlobalObject.
1 parent bebe337 commit ad00098

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

CSharpToJavaScript/APIs/JS/Ecma/GlobalObject.cs

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using CSharpToJavaScript.Utils;
1+
using CSharpToJavaScript.APIs.JS.Ecma;
2+
using CSharpToJavaScript.Utils;
23

34
namespace CSharpToJavaScript.APIs.JS
45
{
@@ -26,27 +27,27 @@ public partial class GlobalThis : GlobalObject
2627
//Float32Array, Float64Array, Int8Array, Int16Array, Int32Array, Map, Promise,
2728
//Proxy, Set, SharedArrayBuffer, Uint8Array, Uint8ClampedArray, Uint16Array,
2829
//Uint32Array, WeakMap, WeakRef, WeakSet
29-
/*
30+
3031
[To(ToAttribute.Default)]
31-
public static AggregateError AggregateError(dynamic errors, dynamic? message = null,dynamic? options = null)
32+
public static AggregateError AggregateError(object[] errors, string? message = null, object? options = null)
3233
{
3334
throw new System.NotImplementedException();
3435
}
35-
*/
36+
3637
/*
3738
[To(ToAttribute.Default)]
3839
public static Array Array(params dynamic[] values)
3940
{
4041
throw new System.NotImplementedException();
4142
}
4243
*/
43-
/*
44+
4445
[To(ToAttribute.Default)]
4546
public static BigInt BigInt(dynamic value)
4647
{
4748
throw new System.NotImplementedException();
4849
}
49-
*/
50+
5051

5152
[To(ToAttribute.Default)]
5253
public static bool Boolean(dynamic value)
@@ -60,20 +61,20 @@ public static string Date()
6061
throw new System.NotImplementedException();
6162
}
6263

63-
/*
64+
6465
[To(ToAttribute.Default)]
65-
public static Error Error(dynamic message, dynamic? options = null)
66+
public static Error Error(string message, object? options = null)
6667
{
6768
throw new System.NotImplementedException();
68-
}*/
69+
}
6970

70-
/*
71+
7172
[To(ToAttribute.Default)]
72-
public static EvalError EvalError(dynamic message, dynamic? options = null)
73+
public static EvalError EvalError(string message, object? options = null)
7374
{
7475
throw new System.NotImplementedException();
7576

76-
}*/
77+
}
7778

7879
//https://262.ecma-international.org/14.0/#sec-function-p1-p2-pn-body
7980
//see NOTE!
@@ -96,21 +97,21 @@ public static Object Object(dynamic? value = null)
9697
throw new System.NotImplementedException();
9798

9899
}
99-
/*
100+
100101
[To(ToAttribute.Default)]
101-
public static RangeError RangeError(dynamic message, dynamic? options = null)
102+
public static RangeError RangeError(string message, object? options = null)
102103
{
103104
throw new System.NotImplementedException();
104105

105-
}*/
106-
/*
106+
}
107+
107108
[To(ToAttribute.Default)]
108-
public static ReferenceError ReferenceError(dynamic message, dynamic? options = null)
109+
public static ReferenceError ReferenceError(string message, object? options = null)
109110
{
110111
throw new System.NotImplementedException();
111112

112-
}*/
113-
113+
}
114+
114115
[To(ToAttribute.Default)]
115116
public static string RegExp(string pattern, string? flags = null)
116117
{
@@ -132,27 +133,27 @@ public static Symbol Symbol(dynamic? description = null)
132133
throw new System.NotImplementedException();
133134
134135
}*/
135-
/*
136+
136137
[To(ToAttribute.Default)]
137-
public static SyntaxError SyntaxError(dynamic message, dynamic? options = null)
138+
public static SyntaxError SyntaxError(string message, object? options = null)
138139
{
139140
throw new System.NotImplementedException();
140141

141-
}*/
142-
/*
142+
}
143+
143144
[To(ToAttribute.Default)]
144-
public static TypeError TypeError(dynamic message, dynamic? options = null)
145+
public static TypeError TypeError(string message, object? options = null)
145146
{
146147
throw new System.NotImplementedException();
147148

148-
}*/
149-
/*
149+
}
150+
150151
[To(ToAttribute.Default)]
151-
public static URIError URIError(dynamic message, dynamic? options = null)
152+
public static URIError URIError(string message, object? options = null)
152153
{
153154
throw new System.NotImplementedException();
154155

155-
}*/
156+
}
156157

157158
}
158159

0 commit comments

Comments
 (0)