1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

JSSpecCompiler: Parse <sup> as raising a number to a power in xspec mode

This commit is contained in:
Dan Klishch 2024-01-20 20:54:03 -05:00 committed by Andrew Kaster
parent 394c9b7006
commit bd26e5dce9
6 changed files with 18 additions and 4 deletions

View file

@ -24,7 +24,7 @@
<emu-xref aoid="𝔽"><a href="https://tc39.es/ecma262/#𝔽">𝔽</a></emu-xref>
(
<emu-xref aoid="floor"><a href="https://tc39.es/ecma262/#eqn-floor">floor</a></emu-xref>
(<var>nowNs</var> / 1000000)).
(<var>nowNs</var> / 10<sup>6</sup>)).
</li>
</ol>
</emu-alg>

View file

@ -17,5 +17,7 @@ TreeList
UnresolvedReference floor
BinaryOperation Division
Var nowNs
MathematicalConstant 1000000
BinaryOperation Power
MathematicalConstant 10
MathematicalConstant 6