ToHTML does not run
turtle.html:159 Uncaught TypeError: turtle.pathData is not a function
at draw (turtle.html:159:28)
at turtle.html:167:1
draw @ turtle.html:159
(anonymous) @ turtle.html:167
Description
To Reproduce
$turt = turtle square 42 stroke blue fill salmon opacity 1.0
$turt.PSTypeNames.Insert(0, 'Turtle.Js')
$turt.ToHTML() | Set-Content -Path 'turtle.html'
Get-Item 'turtle.html' | Get-Item | Invoke-Item