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
{{ message }}
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
Looks like JSIL doesn't support resolving pointer from string. Here is test case:
using System;
static class Program {
public static void Main () {
string str = "qww";
unsafe
{
fixed (char* sPtr = str)
{
*sPtr = 'a';
}
}
Console.WriteLine(str);
}
}
Translation result:
var sPtr = JSIL.UntranslatableInstruction("Implicit conversion to pointer: Untranslatable Expression Conversion of expression '@<var System.String str>' to pointer");
sPtr.set(("a").charCodeAt(0));
$T00().WriteLine("qww");