1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 21:45:07 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Tests/spec-single-function-simple.xml

35 lines
1.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE inline_dtd[<!ENTITY nbsp " ">]>
<specification>
<emu-import href="spec/celestial.html">
<emu-clause id="sec-celestial-now-object">
<h1><span class="secnum">2</span> The Celestial.Now Object</h1>
<emu-clause id="sec-celestial-now-abstract-ops">
<h1><span class="secnum">2.3</span> Abstract Operations</h1>
<emu-clause id="sec-celestial-systemutcepochmilliseconds" aoid="SystemUTCEpochMilliseconds">
<h1><span class="secnum">2.3.2</span> SystemUTCEpochMilliseconds ( )</h1>
<emu-alg>
<ol>
<li>
Let <var>global</var> be
<emu-xref aoid="GetGlobalObject"><a href="https://tc39.es/ecma262/#sec-getglobalobject">GetGlobalObject</a></emu-xref>
().
</li>
<li>
Let <var>nowNs</var> be
<emu-xref aoid="HostSystemUTCEpochNanoseconds" id="_ref_119"><a href="#sec-hostsystemutcepochnanoseconds">HostSystemUTCEpochNanoseconds</a></emu-xref>
(<var>global</var>).
</li>
<li>
Return
<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> / 10<sup>6</sup>)).
</li>
</ol>
</emu-alg>
</emu-clause>
</emu-clause>
</emu-clause>
</emu-import>
</specification>