You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[wasm] deprecate legacy JS API and propose new (dotnet#73068)
- Added new API methods to top level next to MONO and BINDING namespaces
- marked MONO and BINDING namespaces obsolete
- separated legacy API into dotnet-legacy.d.ts
- renamed snake_case to camelCase names
Co-authored-by: Marek Fišera <mara@neptuo.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
Copy file name to clipboardexpand all lines: src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/MemoryTests.cs
+9-9
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ public static unsafe void Int52TestOK(long value)
Copy file name to clipboardexpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/Interop/JavaScriptExports.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ public static void StopProfile()
117
117
{
118
118
}
119
119
120
-
// Called by the AOT profiler to save profile data into INTERNAL.aot_profile_data
120
+
// Called by the AOT profiler to save profile data into INTERNAL.aotProfileData
Copy file name to clipboardexpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/JSImportAttribute.cs
/// The name of the target JavaScript function. This name will be used as a key to locate the function in the IMPORTS JavaScript object owned by the runtime.
32
+
/// The name of the target JavaScript function. This name will be used as a key to locate the function in the module.
35
33
/// Functions nested inside of objects can be referred to by using the dot operator to connect one or more names.
36
34
/// </summary>
37
35
publicstringFunctionName{get;}
@@ -44,7 +42,7 @@ public sealed class JSImportAttribute : Attribute
44
42
/// <summary>
45
43
/// Initializes a new instance of the <see cref="JSImportAttribute"/>.
46
44
/// </summary>
47
-
/// <param name="functionName">Name of the function to be bound in the IMPORTS object of the runtime instance in the JavaScript page. It allows dots for nested objects.</param>
45
+
/// <param name="functionName">Name of the function to be bound in the module. It allows dots for nested objects.</param>
48
46
publicJSImportAttribute(stringfunctionName)
49
47
{
50
48
FunctionName=functionName;
@@ -54,7 +52,7 @@ public JSImportAttribute(string functionName)
54
52
/// Initializes a new instance of the <see cref="JSImportAttribute"/>.
55
53
/// </summary>
56
54
/// <param name="functionName">
57
-
/// The name of the target JavaScript function. This name will be used as a key to locate the function in the IMPORTS JavaScript object owned by the runtime.
55
+
/// The name of the target JavaScript function. This name will be used as a key to locate the function in the module.
58
56
/// Functions nested inside of objects can be referred to by using the dot operator to connect one or more names.
Copy file name to clipboardexpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System/Runtime/InteropServices/JavaScript/JavaScriptTestHelper.cs
+4
Original file line number
Diff line number
Diff line change
@@ -918,13 +918,17 @@ public static JSObject EchoIJSObject([JSMarshalAs<JSType.Object>] JSObject arg1)
Copy file name to clipboardexpand all lines: src/libraries/System.Runtime.InteropServices.JavaScript/tests/System.Runtime.InteropServices.JavaScript.UnitTests/System/Runtime/InteropServices/JavaScript/JavaScriptTestHelper.mjs
+8-6
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ class JSData {
5
5
constructor(name){
6
6
this.name=name;
7
7
}
8
-
echoMemberMethod(arg1){
9
-
returnarg1+"-w-i-t-h-"+this.name;
8
+
echoMemberMethod(arg1){
9
+
returnarg1+"-w-i-t-h-"+this.name;
10
10
}
11
11
toString(){
12
12
return`JSData("${this.name}")`;
@@ -146,14 +146,14 @@ export function getClass1() {
0 commit comments