Skip to content

Commit fa7536a

Browse files
committed
Added "TypeOf" method translates as the typeof operator.
1 parent fdd594f commit fa7536a

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CSharpToJavaScript/APIs/JS/Ecma/Date.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ public float GetDay()
4747
{
4848
throw new System.NotImplementedException();
4949
}
50-
50+
51+
//does not exists in es14
52+
public float GetYear()
53+
{
54+
throw new System.NotImplementedException();
55+
}
5156
public float GetFullYear()
5257
{
5358
throw new System.NotImplementedException();

CSharpToJavaScript/APIs/JS/GlobalObject.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public static Undefined Void(dynamic arg)
2424
{
2525
return new Undefined();
2626
}
27+
[Unary("typeof ")]
28+
public static string TypeOf(dynamic arg)
29+
{
30+
return string.Empty;
31+
}
2732
[Binary("instanceof")]
2833
public static bool InstanceOf(dynamic left, dynamic right)
2934
{

CSharpToJavaScript/APIs/JS/ParentNode.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
using CSharpToJavaScript.Utils;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
72

83
namespace CSharpToJavaScript.APIs.JS
94
{

0 commit comments

Comments
 (0)