|
@@ -5,7 +5,7 @@
|
|
|
* include guard. Other parts of the header are Duktape
|
|
* include guard. Other parts of the header are Duktape
|
|
|
* internal and related to platform/compiler/feature detection.
|
|
* internal and related to platform/compiler/feature detection.
|
|
|
*
|
|
*
|
|
|
- * Git commit 281739096bf0c73d5c494069b3146e80dcbbde58 (v1.2.0-289-g2817390).
|
|
|
|
|
|
|
+ * Git commit de0a9aa6126e92054d0f36393371e26562f8b9ec (v1.2.0-373-gde0a9aa-dirty).
|
|
|
*
|
|
*
|
|
|
* See Duktape AUTHORS.rst and LICENSE.txt for copyright and
|
|
* See Duktape AUTHORS.rst and LICENSE.txt for copyright and
|
|
|
* licensing information.
|
|
* licensing information.
|
|
@@ -16,21 +16,21 @@
|
|
|
* ===============
|
|
* ===============
|
|
|
* Duktape license
|
|
* Duktape license
|
|
|
* ===============
|
|
* ===============
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* (http://opensource.org/licenses/MIT)
|
|
* (http://opensource.org/licenses/MIT)
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Copyright (c) 2013-2015 by Duktape authors (see AUTHORS.rst)
|
|
* Copyright (c) 2013-2015 by Duktape authors (see AUTHORS.rst)
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
* furnished to do so, subject to the following conditions:
|
|
* furnished to do so, subject to the following conditions:
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
* all copies or substantial portions of the Software.
|
|
* all copies or substantial portions of the Software.
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
@@ -45,36 +45,36 @@
|
|
|
* ===============
|
|
* ===============
|
|
|
* Duktape authors
|
|
* Duktape authors
|
|
|
* ===============
|
|
* ===============
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Copyright
|
|
* Copyright
|
|
|
* =========
|
|
* =========
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Duktape copyrights are held by its authors. Each author has a copyright
|
|
* Duktape copyrights are held by its authors. Each author has a copyright
|
|
|
* to their contribution, and agrees to irrevocably license the contribution
|
|
* to their contribution, and agrees to irrevocably license the contribution
|
|
|
* under the Duktape ``LICENSE.txt``.
|
|
* under the Duktape ``LICENSE.txt``.
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Authors
|
|
* Authors
|
|
|
* =======
|
|
* =======
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Please include an e-mail address, a link to your GitHub profile, or something
|
|
* Please include an e-mail address, a link to your GitHub profile, or something
|
|
|
* similar to allow your contribution to be identified accurately.
|
|
* similar to allow your contribution to be identified accurately.
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* The following people have contributed code and agreed to irrevocably license
|
|
* The following people have contributed code and agreed to irrevocably license
|
|
|
* their contributions under the Duktape ``LICENSE.txt`` (in order of appearance):
|
|
* their contributions under the Duktape ``LICENSE.txt`` (in order of appearance):
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* * Sami Vaarala <[email protected]>
|
|
* * Sami Vaarala <[email protected]>
|
|
|
* * Niki Dobrev
|
|
* * Niki Dobrev
|
|
|
* * Andreas \u00d6man <[email protected]>
|
|
* * Andreas \u00d6man <[email protected]>
|
|
|
* * L\u00e1szl\u00f3 Lang\u00f3 <[email protected]>
|
|
* * L\u00e1szl\u00f3 Lang\u00f3 <[email protected]>
|
|
|
* * Legimet <[email protected]>
|
|
* * Legimet <[email protected]>
|
|
|
* * Karl Skomski <[email protected]>
|
|
* * Karl Skomski <[email protected]>
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* Other contributions
|
|
* Other contributions
|
|
|
* ===================
|
|
* ===================
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* The following people have contributed something other than code (e.g. reported
|
|
* The following people have contributed something other than code (e.g. reported
|
|
|
* bugs, provided ideas, etc; roughly in order of appearance):
|
|
* bugs, provided ideas, etc; roughly in order of appearance):
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* * Greg Burns
|
|
* * Greg Burns
|
|
|
* * Anthony Rabine
|
|
* * Anthony Rabine
|
|
|
* * Carlos Costa
|
|
* * Carlos Costa
|
|
@@ -103,7 +103,8 @@
|
|
|
* * https://github.com/Kelledin
|
|
* * https://github.com/Kelledin
|
|
|
* * https://github.com/sstruchtrup
|
|
* * https://github.com/sstruchtrup
|
|
|
* * Michael Drake (https://github.com/tlsa)
|
|
* * Michael Drake (https://github.com/tlsa)
|
|
|
- *
|
|
|
|
|
|
|
+ * * https://github.com/chris-y
|
|
|
|
|
+ *
|
|
|
* If you are accidentally missing from this list, send me an e-mail
|
|
* If you are accidentally missing from this list, send me an e-mail
|
|
|
* (``[email protected]``) and I'll fix the omission.
|
|
* (``[email protected]``) and I'll fix the omission.
|
|
|
*/
|
|
*/
|
|
@@ -115,10 +116,10 @@
|
|
|
|
|
|
|
|
// ATOMIC BEGIN
|
|
// ATOMIC BEGIN
|
|
|
|
|
|
|
|
-// Disabling this 8/8/2015, if having problems with GC (objects being rescued
|
|
|
|
|
-// during finalization), reenable and make sure option is also enabled when
|
|
|
|
|
-// building Duktape's dist
|
|
|
|
|
-// #define DUK_OPT_NO_VOLUNTARY_GC
|
|
|
|
|
|
|
+// Disabling Voluntary GC as there is a finalization issue
|
|
|
|
|
+// and this seems to smooth out framerate
|
|
|
|
|
+// https://github.com/svaarala/duktape/issues/108
|
|
|
|
|
+#define DUK_OPT_NO_VOLUNTARY_GC
|
|
|
|
|
|
|
|
// enable JSON string fast path which requires fast int
|
|
// enable JSON string fast path which requires fast int
|
|
|
// https://github.com/svaarala/duktape/issues/204
|
|
// https://github.com/svaarala/duktape/issues/204
|
|
@@ -228,7 +229,7 @@ struct duk_number_list_entry {
|
|
|
* so that application code can easily log which Duktape snapshot was used.
|
|
* so that application code can easily log which Duktape snapshot was used.
|
|
|
* Not available in the Ecmascript environment.
|
|
* Not available in the Ecmascript environment.
|
|
|
*/
|
|
*/
|
|
|
-#define DUK_GIT_DESCRIBE "v1.2.0-289-g2817390"
|
|
|
|
|
|
|
+#define DUK_GIT_DESCRIBE "v1.2.0-373-gde0a9aa-dirty"
|
|
|
|
|
|
|
|
/* Duktape debug protocol version used by this build. */
|
|
/* Duktape debug protocol version used by this build. */
|
|
|
#define DUK_DEBUG_PROTOCOL_VERSION 1
|
|
#define DUK_DEBUG_PROTOCOL_VERSION 1
|
|
@@ -290,9 +291,9 @@ struct duk_number_list_entry {
|
|
|
#define DUK_ENUM_NO_PROXY_BEHAVIOR (1 << 5) /* enumerate a proxy object itself without invoking proxy behavior */
|
|
#define DUK_ENUM_NO_PROXY_BEHAVIOR (1 << 5) /* enumerate a proxy object itself without invoking proxy behavior */
|
|
|
|
|
|
|
|
/* Compilation flags for duk_compile() and duk_eval() */
|
|
/* Compilation flags for duk_compile() and duk_eval() */
|
|
|
-#define DUK_COMPILE_EVAL (1 << 0) /* compile eval code (instead of program) */
|
|
|
|
|
-#define DUK_COMPILE_FUNCTION (1 << 1) /* compile function code (instead of program) */
|
|
|
|
|
-#define DUK_COMPILE_STRICT (1 << 2) /* use strict (outer) context for program, eval, or function */
|
|
|
|
|
|
|
+#define DUK_COMPILE_EVAL (1 << 0) /* compile eval code (instead of global code) */
|
|
|
|
|
+#define DUK_COMPILE_FUNCTION (1 << 1) /* compile function code (instead of global code) */
|
|
|
|
|
+#define DUK_COMPILE_STRICT (1 << 2) /* use strict (outer) context for global, eval, or function code */
|
|
|
#define DUK_COMPILE_SAFE (1 << 3) /* (internal) catch compilation errors */
|
|
#define DUK_COMPILE_SAFE (1 << 3) /* (internal) catch compilation errors */
|
|
|
#define DUK_COMPILE_NORESULT (1 << 4) /* (internal) omit eval result */
|
|
#define DUK_COMPILE_NORESULT (1 << 4) /* (internal) omit eval result */
|
|
|
#define DUK_COMPILE_NOSOURCE (1 << 5) /* (internal) no source string on stack */
|
|
#define DUK_COMPILE_NOSOURCE (1 << 5) /* (internal) no source string on stack */
|
|
@@ -845,6 +846,7 @@ DUK_EXTERNAL_DECL duk_int_t duk_pcall(duk_context *ctx, duk_idx_t nargs);
|
|
|
DUK_EXTERNAL_DECL duk_int_t duk_pcall_method(duk_context *ctx, duk_idx_t nargs);
|
|
DUK_EXTERNAL_DECL duk_int_t duk_pcall_method(duk_context *ctx, duk_idx_t nargs);
|
|
|
DUK_EXTERNAL_DECL duk_int_t duk_pcall_prop(duk_context *ctx, duk_idx_t obj_index, duk_idx_t nargs);
|
|
DUK_EXTERNAL_DECL duk_int_t duk_pcall_prop(duk_context *ctx, duk_idx_t obj_index, duk_idx_t nargs);
|
|
|
DUK_EXTERNAL_DECL void duk_new(duk_context *ctx, duk_idx_t nargs);
|
|
DUK_EXTERNAL_DECL void duk_new(duk_context *ctx, duk_idx_t nargs);
|
|
|
|
|
+DUK_EXTERNAL_DECL duk_int_t duk_pnew(duk_context *ctx, duk_idx_t nargs);
|
|
|
DUK_EXTERNAL_DECL duk_int_t duk_safe_call(duk_context *ctx, duk_safe_call_function func, duk_idx_t nargs, duk_idx_t nrets);
|
|
DUK_EXTERNAL_DECL duk_int_t duk_safe_call(duk_context *ctx, duk_safe_call_function func, duk_idx_t nargs, duk_idx_t nrets);
|
|
|
|
|
|
|
|
/*
|
|
/*
|