Skip to content

Commit 9fbcccb

Browse files
committed
Added TypedArray.
1 parent a7495fe commit 9fbcccb

File tree

11 files changed

+364
-21
lines changed

11 files changed

+364
-21
lines changed

CSharpToJavaScript/APIs/JS/Ecma/Array.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public Array ToSpliced(int start, int skipCount,params dynamic[] items )
177177
{
178178
throw new System.NotImplementedException();
179179
}
180-
public override string ToString()
180+
public new string ToString()
181181
{
182182
throw new System.NotImplementedException();
183183
}

CSharpToJavaScript/APIs/JS/Ecma/BigInt.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ public class BigInt : BigIntPrototype
1212
[To(ToAttribute.FirstCharToLowerCase)]
1313
public static BigIntPrototype Prototype { get; } = new();
1414

15-
public BigInt(double value) { }
16-
1715
[To(ToAttribute.FirstCharToLowerCase)]
1816
public BigInt AsIntN(Number bits, BigInt bigint)
1917
{

CSharpToJavaScript/APIs/JS/Ecma/Boolean.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial class BooleanPrototype : FunctionPrototype
2424

2525
public BooleanPrototype() { }
2626

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

CSharpToJavaScript/APIs/JS/Ecma/Date.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public string ToLocaleTimeString(dynamic? reserved1 = null, dynamic? reserved2 =
233233
throw new System.NotImplementedException();
234234
}
235235

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

CSharpToJavaScript/APIs/JS/Ecma/Error.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 override string ToString()
30+
public new string ToString()
3131
{
3232
throw new NotImplementedException();
3333
}

CSharpToJavaScript/APIs/JS/Ecma/Function.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,22 @@ public partial class FunctionPrototype : ObjectPrototype
3232
{
3333
public FunctionPrototype() { }
3434

35-
public dynamic Apply(dynamic thisArg, dynamic argArray)
35+
public static dynamic Apply(dynamic thisArg, dynamic argArray)
3636
{
3737
throw new System.NotImplementedException();
3838
}
3939

40-
public dynamic Bind(dynamic thisArg, params dynamic[] args)
40+
public static dynamic Bind(dynamic thisArg, params dynamic[] args)
4141
{
4242
throw new System.NotImplementedException();
4343
}
44-
public dynamic Call(dynamic thisArg, params dynamic[] args)
44+
public static dynamic Call(dynamic thisArg, params dynamic[] args)
4545
{
4646
throw new System.NotImplementedException();
4747
}
48-
public new virtual string ToString()
48+
49+
[Value("toString")]
50+
public static string ToStringStatic()
4951
{
5052
throw new System.NotImplementedException();
5153
}

CSharpToJavaScript/APIs/JS/Ecma/Object.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,17 @@ public bool PropertyIsEnumerable(dynamic V)
173173
throw new System.NotImplementedException();
174174
}
175175

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

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

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

CSharpToJavaScript/APIs/JS/Ecma/RegExp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public bool Test(string S)
4343
throw new System.NotImplementedException();
4444
}
4545

46-
public override string ToString()
46+
public new string ToString()
4747
{
4848
throw new System.NotImplementedException();
4949
}

CSharpToJavaScript/APIs/JS/Ecma/String.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public string ToLowerCase()
152152
{
153153
throw new System.NotImplementedException();
154154
}
155-
public override string ToString()
155+
public new string ToString()
156156
{
157157
throw new System.NotImplementedException();
158158
}

CSharpToJavaScript/APIs/JS/Ecma/Symbol.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ public partial class Symbol : SymbolPrototype
2626
[To(ToAttribute.FirstCharToLowerCase)]
2727
public SymbolPrototype Prototype { get; } = new();
2828

29-
[To(ToAttribute.Default)]
30-
public Symbol(string description = "")
31-
{
32-
33-
}
34-
3529
[To(ToAttribute.FirstCharToLowerCase)]
3630
public static Symbol For(string key)
3731
{

0 commit comments

Comments
 (0)