Browse Source

API doc for DUK_COMPILE_SHEBANG

pull/1380/head
Sami Vaarala 8 years ago
parent
commit
3f1317bf35
  1. 27
      website/api/duk_compile.yaml

27
website/api/duk_compile.yaml

@ -15,14 +15,25 @@ summary: |
internal limit errors, etc).</p> internal limit errors, etc).</p>
<p>The following flags may be given:</p> <p>The following flags may be given:</p>
<ul> <table>
<li><code>DUK_COMPILE_EVAL</code>: compile the input as eval code instead of <tr>
as an Ecmascript program</li> <td>DUK_COMPILE_EVAL</td>
<li><code>DUK_COMPILE_FUNCTION</code>: compile the input as a function instead <td>Compile the input as eval code instead of as an Ecmascript program</td>
of as an Ecmascript program</li> </tr>
<li><code>DUK_COMPILE_STRICT</code>: force the input to be compiled in strict <tr>
mode</li> <td>DUK_COMPILE_FUNCTION</td>
</ul> <td>Compile the input as a function instead of as an Ecmascript program</td>
</tr>
<tr>
<td>DUK_COMPILE_STRICT</td>
<td>Force the input to be compiled in strict mode</td>
</tr>
<tr>
<td>DUK_COMPILE_SHEBANG</td>
<td>Allow non-standard shebang comment (<code>#! ...</code>) on first line
of the input</td>
</tr>
</table>
<p>The source code being compiled may be:</p> <p>The source code being compiled may be:</p>

Loading…
Cancel
Save