瀏覽代碼

Duktape: Use internal properties (prefixed by \xFF).

According to the documentation http://duktape.org/guide.html#internalproperties
and reccomendations https://github.com/svaarala/duktape/issues/392#issuecomment-145301192

http://duktape.org/guide.html#internalproperties
bel 9 年之前
父節點
當前提交
f24cb97bf8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mod_duktape.inl

+ 1 - 1
src/mod_duktape.inl

@@ -14,7 +14,7 @@
 /* Note: This is only experimental support, so any API may still change. */
 
 
-static const char *civetweb_conn_id = "civetweb_conn";
+static const char *civetweb_conn_id = "\xFF" "civetweb_conn";
 
 
 static void *mg_duk_mem_alloc(void *udata, duk_size_t size)