Skip to content

Commit 417dd9f

Browse files
committed
Changed a little debug output to the file.
1 parent b494941 commit 417dd9f

File tree

15 files changed

+432
-56
lines changed

15 files changed

+432
-56
lines changed

CSharpToJavaScript/APIs/JS/Ecma/Array.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -160,10 +160,11 @@ public Array Splice(int start, int deleteCount, params dynamic[] items )
160160
{
161161
throw new System.NotImplementedException();
162162
}
163-
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
163+
/*
164+
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
164165
{
165166
throw new System.NotImplementedException();
166-
}
167+
}*/
167168
public Array ToReversed()
168169
{
169170
throw new System.NotImplementedException();
@@ -176,7 +177,7 @@ public Array ToSpliced(int start, int skipCount,params dynamic[] items )
176177
{
177178
throw new System.NotImplementedException();
178179
}
179-
public new string ToString()
180+
public override string ToString()
180181
{
181182
throw new System.NotImplementedException();
182183
}

CSharpToJavaScript/APIs/JS/Ecma/BigInt.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -26,14 +26,16 @@ public BigInt AasUintN(Number bits, BigInt bigint)
2626
throw new System.NotImplementedException();
2727
}
2828
}
29+
[To(ToAttribute.FirstCharToLowerCase)]
2930
public class BigIntPrototype : FunctionPrototype
3031
{
3132
public BigIntPrototype() { }
3233

33-
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
34+
/*
35+
public override string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
3436
{
3537
throw new System.NotImplementedException();
36-
}
38+
}*/
3739
public string ToString(Number? radix = null)
3840
{
3941
throw new System.NotImplementedException();

CSharpToJavaScript/APIs/JS/Ecma/Boolean.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -24,7 +24,7 @@ public partial class BooleanPrototype : FunctionPrototype
2424

2525
public BooleanPrototype() { }
2626

27-
public new string ToString()
27+
public override string ToString()
2828
{
2929
throw new System.NotImplementedException();
3030
}

CSharpToJavaScript/APIs/JS/Ecma/Date.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -222,18 +222,18 @@ public string ToLocaleDateString(dynamic? reserved1 = null, dynamic? reserved2 =
222222
{
223223
throw new System.NotImplementedException();
224224
}
225-
226-
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
225+
/*
226+
public override string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
227227
{
228228
throw new System.NotImplementedException();
229229
}
230-
230+
*/
231231
public string ToLocaleTimeString(dynamic? reserved1 = null, dynamic? reserved2 = null)
232232
{
233233
throw new System.NotImplementedException();
234234
}
235235

236-
public new string ToString()
236+
public override string ToString()
237237
{
238238
throw new System.NotImplementedException();
239239
}

CSharpToJavaScript/APIs/JS/Ecma/Error.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -27,7 +27,7 @@ public class ErrorPrototype : FunctionPrototype
2727
public string Message { get; set; } = string.Empty;
2828
public string Name { get; set; } = "Error";
2929
public ErrorPrototype() { }
30-
public new string ToString()
30+
public override string ToString()
3131
{
3232
throw new NotImplementedException();
3333
}

CSharpToJavaScript/APIs/JS/Ecma/Function.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
55

66
namespace CSharpToJavaScript.APIs.JS.Ecma;
77

88
//https://262.ecma-international.org/14.0/#sec-function-objects
9+
[To(ToAttribute.Default)]
910
public partial class Function : FunctionPrototype
1011
{
1112
[To(ToAttribute.FirstCharToLowerCase)]
@@ -44,7 +45,7 @@ public dynamic Call(dynamic thisArg, params dynamic[] args)
4445
{
4546
throw new System.NotImplementedException();
4647
}
47-
public new string ToString()
48+
public new virtual string ToString()
4849
{
4950
throw new System.NotImplementedException();
5051
}

CSharpToJavaScript/APIs/JS/Ecma/GlobalObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;

CSharpToJavaScript/APIs/JS/Ecma/Math.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;

CSharpToJavaScript/APIs/JS/Ecma/Number.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -80,10 +80,11 @@ public string ToFixed(dynamic fractionDigits)
8080
{
8181
throw new System.NotImplementedException();
8282
}
83-
public new string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
83+
/*
84+
public override string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
8485
{
8586
throw new System.NotImplementedException();
86-
}
87+
}*/
8788
public string ToPrecision(dynamic precision)
8889
{
8990
throw new System.NotImplementedException();

CSharpToJavaScript/APIs/JS/Ecma/Object.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Disable missing XML comments.
1+
//TODO! Disable missing XML comments.
22
#pragma warning disable CS1591
33

44
using CSharpToJavaScript.Utils;
@@ -173,17 +173,17 @@ public bool PropertyIsEnumerable(dynamic V)
173173
throw new System.NotImplementedException();
174174
}
175175

176-
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
176+
public static string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
177177
{
178178
throw new System.NotImplementedException();
179179
}
180180

181-
public override string ToString()
181+
public static new string ToString()
182182
{
183183
throw new System.NotImplementedException();
184184
}
185185

186-
public virtual dynamic ValueOf()
186+
public static dynamic ValueOf()
187187
{
188188
throw new System.NotImplementedException();
189189
}

0 commit comments

Comments
 (0)