diff --git a/website/guide/custombehavior.html b/website/guide/custombehavior.html index 96342972..d719c048 100644 --- a/website/guide/custombehavior.html +++ b/website/guide/custombehavior.html @@ -243,3 +243,15 @@ differences include:

which matches WHATWG Encoding API specification but differs from Node.js (at least up to version v6.9.1). + +

Shebang comment support

+ +

duk_compile() flag DUK_COMPILE_SHEBANG allows shebang +comment parsing: #! on the first column of the first line causes the +line to be treated as a comment. For example:

+
+#!/usr/bin/duk
+print('Hello world!');
+
+ +

The feature can be disabled by undefining DUK_USE_SHEBANG_COMMENTS.