Skip to content

Commit f2d3732

Browse files
committed
Added BigInt.
1 parent 413f56f commit f2d3732

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using CSharpToJavaScript.Utils;
2+
3+
namespace CSharpToJavaScript.APIs.JS.Ecma;
4+
5+
//https://262.ecma-international.org/14.0/#sec-bigint-objects
6+
[To(ToAttribute.Default)]
7+
public class BigInt : BigIntPrototype
8+
{
9+
[To(ToAttribute.FirstCharToLowerCase)]
10+
public static BigIntPrototype Prototype { get; } = new();
11+
12+
public BigInt(double value) { }
13+
14+
[To(ToAttribute.FirstCharToLowerCase)]
15+
public BigInt AsIntN(Number bits, BigInt bigint)
16+
{
17+
throw new System.NotImplementedException();
18+
}
19+
20+
[To(ToAttribute.FirstCharToLowerCase)]
21+
public BigInt AasUintN(Number bits, BigInt bigint)
22+
{
23+
throw new System.NotImplementedException();
24+
}
25+
}
26+
public class BigIntPrototype
27+
{
28+
public BigIntPrototype() { }
29+
30+
public string ToLocaleString(dynamic? reserved1 = null, dynamic? reserved2 = null)
31+
{
32+
throw new System.NotImplementedException();
33+
}
34+
public string ToString(Number? radix = null)
35+
{
36+
throw new System.NotImplementedException();
37+
}
38+
public BigInt ValueOf()
39+
{
40+
throw new System.NotImplementedException();
41+
}
42+
}

0 commit comments

Comments
 (0)