You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
509 B

name: duk_compile_file
proto: |
void duk_compile_file(duk_context *ctx, duk_uint_t flags, const char *path);
stack: |
[ ... ] -> [ ... function! ]
summary: |
<p>Like
<code><a href="#duk_compile">duk_compile()</a></code>, but the compile input
is given as a filename. The filename associated with the result function
is <code>path</code> as is.</p>
<div include="path-encoding.html" />
example: |
duk_compile_file(ctx, 0, "test.js");
tags:
- compile
- nonportable
introduced: 1.0.0