mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
JSSpecCompiler: Parse true, false, this, undefined, and null
This commit is contained in:
parent
86d54a8684
commit
b800276347
7 changed files with 70 additions and 3 deletions
|
@ -13,4 +13,24 @@
|
|||
</ol>
|
||||
</emu-alg>
|
||||
</emu-clause>
|
||||
<emu-clause id="2" aoid="WellKnownConstants">
|
||||
<h1><span class="secnum">2</span> WellKnownConstants ( <var>a</var> )</h1>
|
||||
<emu-alg>
|
||||
<ol>
|
||||
<li>
|
||||
If <var>a</var> is <emu-val>undefined</emu-val>, then
|
||||
<ol>
|
||||
<li>Let <var>b</var> be <emu-val>null</emu-val>.</li>
|
||||
<li>Return <emu-val>true</emu-val>.</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>Else,
|
||||
<ol>
|
||||
<li>Let <var>c</var> be <emu-val>this</emu-val>.</li>
|
||||
<li>Return <emu-val>false</emu-val>.</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</emu-alg>
|
||||
</emu-clause>
|
||||
</specification>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue