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:
parent
394c9b7006
commit
bd26e5dce9
6 changed files with 18 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -17,5 +17,7 @@ TreeList
|
|||
UnresolvedReference floor
|
||||
BinaryOperation Division
|
||||
Var nowNs
|
||||
MathematicalConstant 1000000
|
||||
BinaryOperation Power
|
||||
MathematicalConstant 10
|
||||
MathematicalConstant 6
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue