/lib_duktape/src/duktape.c
C | 6189 lines | 5220 code | 370 blank | 599 comment | 207 complexity | 871478a7f12eae76e32e32eceff98bb8 MD5 | raw file
Possible License(s): Zlib, BSD-3-Clause, CC0-1.0, GPL-3.0, GPL-2.0, CPL-1.0, MPL-2.0-no-copyleft-exception, LGPL-2.0, LGPL-2.1, LGPL-3.0, 0BSD, Cube
Large files files are truncated, but you can click here to view the full file
- /*
- * Single file autogenerated distributable for Duktape 1.2.2.
- * Git commit 5f4302c732d21b3b721db3d3473db32e4eb92470 (v1.2.2).
- *
- * See Duktape AUTHORS.rst and LICENSE.txt for copyright and
- * licensing information.
- */
- /* LICENSE.txt */
- /*
- * ===============
- * Duktape license
- * ===============
- *
- * (http://opensource.org/licenses/MIT)
- *
- * Copyright (c) 2013-2015 by Duktape authors (see AUTHORS.rst)
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- *
- */
- /* AUTHORS.rst */
- /*
- * ===============
- * Duktape authors
- * ===============
- *
- * Copyright
- * =========
- *
- * Duktape copyrights are held by its authors. Each author has a copyright
- * to their contribution, and agrees to irrevocably license the contribution
- * under the Duktape ``LICENSE.txt``.
- *
- * Authors
- * =======
- *
- * Please include an e-mail address, a link to your GitHub profile, or something
- * similar to allow your contribution to be identified accurately.
- *
- * The following people have contributed code and agreed to irrevocably license
- * their contributions under the Duktape ``LICENSE.txt`` (in order of appearance):
- *
- * * Sami Vaarala <sami.vaarala@iki.fi>
- * * Niki Dobrev
- * * Andreas \u00d6man <andreas@lonelycoder.com>
- * * L\u00e1szl\u00f3 Lang\u00f3 <llango.u-szeged@partner.samsung.com>
- * * Legimet <legimet.calc@gmail.com>
- *
- * Other contributions
- * ===================
- *
- * The following people have contributed something other than code (e.g. reported
- * bugs, provided ideas, etc; roughly in order of appearance):
- *
- * * Greg Burns
- * * Anthony Rabine
- * * Carlos Costa
- * * Aur\u00e9lien Bouilland
- * * Preet Desai (Pris Matic)
- * * judofyr (http://www.reddit.com/user/judofyr)
- * * Jason Woofenden
- * * Micha\u0142 Przyby\u015b
- * * Anthony Howe
- * * Conrad Pankoff
- * * Jim Schimpf
- * * Rajaran Gaunker (https://github.com/zimbabao)
- * * Andreas \u00d6man
- * * Doug Sanden
- * * Josh Engebretson (https://github.com/JoshEngebretson)
- * * Remo Eichenberger (https://github.com/remoe)
- * * Mamod Mehyar (https://github.com/mamod)
- * * David Demelier (https://github.com/hftmarkand)
- * * Tim Caswell (https://github.com/creationix)
- * * Mitchell Blank Jr (https://github.com/mitchblank)
- * * https://github.com/yushli
- * * Seo Sanghyeon (https://github.com/sanxiyn)
- * * Han ChoongWoo (https://github.com/tunz)
- * * Joshua Peek (https://github.com/josh)
- * * Bruce E. Pascoe (https://github.com/fatcerberus)
- * * https://github.com/Kelledin
- *
- * If you are accidentally missing from this list, send me an e-mail
- * (``sami.vaarala@iki.fi``) and I'll fix the omission.
- */
- #line 1 "duk_internal.h"
- /*
- * Top-level include file to be used for all (internal) source files.
- *
- * Source files should not include individual header files, as they
- * have not been designed to be individually included.
- */
- #ifndef DUK_INTERNAL_H_INCLUDED
- #define DUK_INTERNAL_H_INCLUDED
- /*
- * The 'duktape.h' header provides the public API, but also handles all
- * compiler and platform specific feature detection, Duktape feature
- * resolution, inclusion of system headers, etc. These have been merged
- * because the public API is also dependent on e.g. detecting appropriate
- * C types which is quite platform/compiler specific especially for a non-C99
- * build. The public API is also dependent on the resolved feature set.
- *
- * Some actions taken by the merged header (such as including system headers)
- * are not appropriate for building a user application. The define
- * DUK_COMPILING_DUKTAPE allows the merged header to skip/include some
- * sections depending on what is being built.
- */
- #define DUK_COMPILING_DUKTAPE
- #include "duktape.h"
- /*
- * User declarations, e.g. prototypes for user functions used by Duktape
- * macros. Concretely, if DUK_OPT_PANIC_HANDLER is used and the macro
- * value calls a user function, it needs to be declared for Duktape
- * compilation to avoid warnings.
- */
- DUK_USE_USER_DECLARE()
- /*
- * Duktape includes (other than duk_features.h)
- *
- * The header files expect to be included in an order which satisfies header
- * dependencies correctly (the headers themselves don't include any other
- * includes). Forward declarations are used to break circular struct/typedef
- * dependencies.
- */
- #line 1 "duk_replacements.h"
- #ifndef DUK_REPLACEMENTS_H_INCLUDED
- #define DUK_REPLACEMENTS_H_INCLUDED
- #ifdef DUK_USE_REPL_FPCLASSIFY
- DUK_INTERNAL_DECL int duk_repl_fpclassify(double x);
- #endif
- #ifdef DUK_USE_REPL_SIGNBIT
- DUK_INTERNAL_DECL int duk_repl_signbit(double x);
- #endif
- #ifdef DUK_USE_REPL_ISFINITE
- DUK_INTERNAL_DECL int duk_repl_isfinite(double x);
- #endif
- #ifdef DUK_USE_REPL_ISNAN
- DUK_INTERNAL_DECL int duk_repl_isnan(double x);
- #endif
- #ifdef DUK_USE_REPL_ISINF
- DUK_INTERNAL_DECL int duk_repl_isinf(double x);
- #endif
- #endif /* DUK_REPLACEMENTS_H_INCLUDED */
- #line 1 "duk_jmpbuf.h"
- /*
- * Wrapper for jmp_buf.
- *
- * This is used because jmp_buf is an array type for backward compatibility.
- * Wrapping jmp_buf in a struct makes pointer references, sizeof, etc,
- * behave more intuitively.
- *
- * http://en.wikipedia.org/wiki/Setjmp.h#Member_types
- */
- #ifndef DUK_JMPBUF_H_INCLUDED
- #define DUK_JMPBUF_H_INCLUDED
- struct duk_jmpbuf {
- #if defined(DUK_USE_SETJMP) || defined(DUK_USE_UNDERSCORE_SETJMP)
- jmp_buf jb;
- #elif defined(DUK_USE_SIGSETJMP)
- sigjmp_buf jb;
- #else
- #error internal error, no long control transfer provider
- #endif
- };
- #endif /* DUK_JMPBUF_H_INCLUDED */
- #line 1 "duk_forwdecl.h"
- /*
- * Forward declarations for all Duktape structures.
- */
- #ifndef DUK_FORWDECL_H_INCLUDED
- #define DUK_FORWDECL_H_INCLUDED
- /*
- * Forward declarations
- */
- struct duk_jmpbuf;
- /* duk_tval intentionally skipped */
- struct duk_heaphdr;
- struct duk_heaphdr_string;
- struct duk_hstring;
- struct duk_hstring_external;
- struct duk_hobject;
- struct duk_hcompiledfunction;
- struct duk_hnativefunction;
- struct duk_hthread;
- struct duk_hbuffer;
- struct duk_hbuffer_fixed;
- struct duk_hbuffer_dynamic;
- struct duk_propaccessor;
- union duk_propvalue;
- struct duk_propdesc;
- struct duk_heap;
- struct duk_breakpoint;
- struct duk_activation;
- struct duk_catcher;
- struct duk_strcache;
- struct duk_ljstate;
- struct duk_strtab_entry;
- #ifdef DUK_USE_DEBUG
- struct duk_fixedbuffer;
- #endif
- struct duk_bitdecoder_ctx;
- struct duk_bitencoder_ctx;
- struct duk_token;
- struct duk_re_token;
- struct duk_lexer_point;
- struct duk_lexer_ctx;
- struct duk_compiler_instr;
- struct duk_compiler_func;
- struct duk_compiler_ctx;
- struct duk_re_matcher_ctx;
- struct duk_re_compiler_ctx;
- typedef struct duk_jmpbuf duk_jmpbuf;
- /* duk_tval intentionally skipped */
- typedef struct duk_heaphdr duk_heaphdr;
- typedef struct duk_heaphdr_string duk_heaphdr_string;
- typedef struct duk_hstring duk_hstring;
- typedef struct duk_hstring_external duk_hstring_external;
- typedef struct duk_hobject duk_hobject;
- typedef struct duk_hcompiledfunction duk_hcompiledfunction;
- typedef struct duk_hnativefunction duk_hnativefunction;
- typedef struct duk_hthread duk_hthread;
- typedef struct duk_hbuffer duk_hbuffer;
- typedef struct duk_hbuffer_fixed duk_hbuffer_fixed;
- typedef struct duk_hbuffer_dynamic duk_hbuffer_dynamic;
- typedef struct duk_propaccessor duk_propaccessor;
- typedef union duk_propvalue duk_propvalue;
- typedef struct duk_propdesc duk_propdesc;
- typedef struct duk_heap duk_heap;
- typedef struct duk_breakpoint duk_breakpoint;
- typedef struct duk_activation duk_activation;
- typedef struct duk_catcher duk_catcher;
- typedef struct duk_strcache duk_strcache;
- typedef struct duk_ljstate duk_ljstate;
- typedef struct duk_strtab_entry duk_strtab_entry;
- #ifdef DUK_USE_DEBUG
- typedef struct duk_fixedbuffer duk_fixedbuffer;
- #endif
- typedef struct duk_bitdecoder_ctx duk_bitdecoder_ctx;
- typedef struct duk_bitencoder_ctx duk_bitencoder_ctx;
- typedef struct duk_token duk_token;
- typedef struct duk_re_token duk_re_token;
- typedef struct duk_lexer_point duk_lexer_point;
- typedef struct duk_lexer_ctx duk_lexer_ctx;
- typedef struct duk_compiler_instr duk_compiler_instr;
- typedef struct duk_compiler_func duk_compiler_func;
- typedef struct duk_compiler_ctx duk_compiler_ctx;
- typedef struct duk_re_matcher_ctx duk_re_matcher_ctx;
- typedef struct duk_re_compiler_ctx duk_re_compiler_ctx;
- #endif /* DUK_FORWDECL_H_INCLUDED */
- #line 1 "duk_builtins.h"
- /*
- * Automatically generated by genbuiltins.py, do not edit!
- */
- #ifndef DUK_BUILTINS_H_INCLUDED
- #define DUK_BUILTINS_H_INCLUDED
- #if defined(DUK_USE_DOUBLE_LE)
- #if !defined(DUK_SINGLE_FILE)
- DUK_INTERNAL_DECL const duk_uint8_t duk_strings_data[1943];
- #endif /* !DUK_SINGLE_FILE */
- #define DUK_STRDATA_DATA_LENGTH 1943
- #define DUK_STRDATA_MAX_STRLEN 24
- #define DUK_STRIDX_UC_LOGGER 0 /* 'Logger' */
- #define DUK_STRIDX_UC_THREAD 1 /* 'Thread' */
- #define DUK_STRIDX_UC_POINTER 2 /* 'Pointer' */
- #define DUK_STRIDX_UC_BUFFER 3 /* 'Buffer' */
- #define DUK_STRIDX_DEC_ENV 4 /* 'DecEnv' */
- #define DUK_STRIDX_OBJ_ENV 5 /* 'ObjEnv' */
- #define DUK_STRIDX_EMPTY_STRING 6 /* '' */
- #define DUK_STRIDX_GLOBAL 7 /* 'global' */
- #define DUK_STRIDX_UC_ARGUMENTS 8 /* 'Arguments' */
- #define DUK_STRIDX_JSON 9 /* 'JSON' */
- #define DUK_STRIDX_MATH 10 /* 'Math' */
- #define DUK_STRIDX_UC_ERROR 11 /* 'Error' */
- #define DUK_STRIDX_REG_EXP 12 /* 'RegExp' */
- #define DUK_STRIDX_DATE 13 /* 'Date' */
- #define DUK_STRIDX_UC_NUMBER 14 /* 'Number' */
- #define DUK_STRIDX_UC_BOOLEAN 15 /* 'Boolean' */
- #define DUK_STRIDX_UC_STRING 16 /* 'String' */
- #define DUK_STRIDX_ARRAY 17 /* 'Array' */
- #define DUK_STRIDX_UC_FUNCTION 18 /* 'Function' */
- #define DUK_STRIDX_UC_OBJECT 19 /* 'Object' */
- #define DUK_STRIDX_UC_NULL 20 /* 'Null' */
- #define DUK_STRIDX_UC_UNDEFINED 21 /* 'Undefined' */
- #define DUK_STRIDX_JSON_EXT_FUNCTION2 22 /* '{_func:true}' */
- #define DUK_STRIDX_JSON_EXT_FUNCTION1 23 /* '{"_func":true}' */
- #define DUK_STRIDX_JSON_EXT_NEGINF 24 /* '{"_ninf":true}' */
- #define DUK_STRIDX_JSON_EXT_POSINF 25 /* '{"_inf":true}' */
- #define DUK_STRIDX_JSON_EXT_NAN 26 /* '{"_nan":true}' */
- #define DUK_STRIDX_JSON_EXT_UNDEFINED 27 /* '{"_undef":true}' */
- #define DUK_STRIDX_TO_LOG_STRING 28 /* 'toLogString' */
- #define DUK_STRIDX_CLOG 29 /* 'clog' */
- #define DUK_STRIDX_LC_L 30 /* 'l' */
- #define DUK_STRIDX_LC_N 31 /* 'n' */
- #define DUK_STRIDX_LC_FATAL 32 /* 'fatal' */
- #define DUK_STRIDX_LC_ERROR 33 /* 'error' */
- #define DUK_STRIDX_LC_WARN 34 /* 'warn' */
- #define DUK_STRIDX_LC_DEBUG 35 /* 'debug' */
- #define DUK_STRIDX_LC_TRACE 36 /* 'trace' */
- #define DUK_STRIDX_RAW 37 /* 'raw' */
- #define DUK_STRIDX_FMT 38 /* 'fmt' */
- #define DUK_STRIDX_CURRENT 39 /* 'current' */
- #define DUK_STRIDX_RESUME 40 /* 'resume' */
- #define DUK_STRIDX_COMPACT 41 /* 'compact' */
- #define DUK_STRIDX_JC 42 /* 'jc' */
- #define DUK_STRIDX_JX 43 /* 'jx' */
- #define DUK_STRIDX_BASE64 44 /* 'base64' */
- #define DUK_STRIDX_HEX 45 /* 'hex' */
- #define DUK_STRIDX_DEC 46 /* 'dec' */
- #define DUK_STRIDX_ENC 47 /* 'enc' */
- #define DUK_STRIDX_FIN 48 /* 'fin' */
- #define DUK_STRIDX_GC 49 /* 'gc' */
- #define DUK_STRIDX_ACT 50 /* 'act' */
- #define DUK_STRIDX_LC_INFO 51 /* 'info' */
- #define DUK_STRIDX_VERSION 52 /* 'version' */
- #define DUK_STRIDX_ENV 53 /* 'env' */
- #define DUK_STRIDX_MOD_LOADED 54 /* 'modLoaded' */
- #define DUK_STRIDX_MOD_SEARCH 55 /* 'modSearch' */
- #define DUK_STRIDX_ERR_THROW 56 /* 'errThrow' */
- #define DUK_STRIDX_ERR_CREATE 57 /* 'errCreate' */
- #define DUK_STRIDX_COMPILE 58 /* 'compile' */
- #define DUK_STRIDX_INT_REGBASE 59 /* '\x00Regbase' */
- #define DUK_STRIDX_INT_THREAD 60 /* '\x00Thread' */
- #define DUK_STRIDX_INT_HANDLER 61 /* '\x00Handler' */
- #define DUK_STRIDX_INT_FINALIZER 62 /* '\x00Finalizer' */
- #define DUK_STRIDX_INT_CALLEE 63 /* '\x00Callee' */
- #define DUK_STRIDX_INT_MAP 64 /* '\x00Map' */
- #define DUK_STRIDX_INT_ARGS 65 /* '\x00Args' */
- #define DUK_STRIDX_INT_THIS 66 /* '\x00This' */
- #define DUK_STRIDX_INT_PC2LINE 67 /* '\x00Pc2line' */
- #define DUK_STRIDX_INT_SOURCE 68 /* '\x00Source' */
- #define DUK_STRIDX_INT_VARENV 69 /* '\x00Varenv' */
- #define DUK_STRIDX_INT_LEXENV 70 /* '\x00Lexenv' */
- #define DUK_STRIDX_INT_VARMAP 71 /* '\x00Varmap' */
- #define DUK_STRIDX_INT_FORMALS 72 /* '\x00Formals' */
- #define DUK_STRIDX_INT_BYTECODE 73 /* '\x00Bytecode' */
- #define DUK_STRIDX_INT_NEXT 74 /* '\x00Next' */
- #define DUK_STRIDX_INT_TARGET 75 /* '\x00Target' */
- #define DUK_STRIDX_INT_VALUE 76 /* '\x00Value' */
- #define DUK_STRIDX_LC_POINTER 77 /* 'pointer' */
- #define DUK_STRIDX_LC_BUFFER 78 /* 'buffer' */
- #define DUK_STRIDX_INT_TRACEDATA 79 /* '\x00Tracedata' */
- #define DUK_STRIDX_LINE_NUMBER 80 /* 'lineNumber' */
- #define DUK_STRIDX_FILE_NAME 81 /* 'fileName' */
- #define DUK_STRIDX_PC 82 /* 'pc' */
- #define DUK_STRIDX_STACK 83 /* 'stack' */
- #define DUK_STRIDX_THROW_TYPE_ERROR 84 /* 'ThrowTypeError' */
- #define DUK_STRIDX_DUKTAPE 85 /* 'Duktape' */
- #define DUK_STRIDX_ID 86 /* 'id' */
- #define DUK_STRIDX_REQUIRE 87 /* 'require' */
- #define DUK_STRIDX___PROTO__ 88 /* '__proto__' */
- #define DUK_STRIDX_SET_PROTOTYPE_OF 89 /* 'setPrototypeOf' */
- #define DUK_STRIDX_OWN_KEYS 90 /* 'ownKeys' */
- #define DUK_STRIDX_ENUMERATE 91 /* 'enumerate' */
- #define DUK_STRIDX_DELETE_PROPERTY 92 /* 'deleteProperty' */
- #define DUK_STRIDX_HAS 93 /* 'has' */
- #define DUK_STRIDX_PROXY 94 /* 'Proxy' */
- #define DUK_STRIDX_CALLEE 95 /* 'callee' */
- #define DUK_STRIDX_INVALID_DATE 96 /* 'Invalid Date' */
- #define DUK_STRIDX_BRACKETED_ELLIPSIS 97 /* '[...]' */
- #define DUK_STRIDX_NEWLINE_TAB 98 /* '\n\t' */
- #define DUK_STRIDX_SPACE 99 /* ' ' */
- #define DUK_STRIDX_COMMA 100 /* ',' */
- #define DUK_STRIDX_MINUS_ZERO 101 /* '-0' */
- #define DUK_STRIDX_PLUS_ZERO 102 /* '+0' */
- #define DUK_STRIDX_ZERO 103 /* '0' */
- #define DUK_STRIDX_MINUS_INFINITY 104 /* '-Infinity' */
- #define DUK_STRIDX_PLUS_INFINITY 105 /* '+Infinity' */
- #define DUK_STRIDX_INFINITY 106 /* 'Infinity' */
- #define DUK_STRIDX_LC_OBJECT 107 /* 'object' */
- #define DUK_STRIDX_LC_STRING 108 /* 'string' */
- #define DUK_STRIDX_LC_NUMBER 109 /* 'number' */
- #define DUK_STRIDX_LC_BOOLEAN 110 /* 'boolean' */
- #define DUK_STRIDX_LC_UNDEFINED 111 /* 'undefined' */
- #define DUK_STRIDX_STRINGIFY 112 /* 'stringify' */
- #define DUK_STRIDX_TAN 113 /* 'tan' */
- #define DUK_STRIDX_SQRT 114 /* 'sqrt' */
- #define DUK_STRIDX_SIN 115 /* 'sin' */
- #define DUK_STRIDX_ROUND 116 /* 'round' */
- #define DUK_STRIDX_RANDOM 117 /* 'random' */
- #define DUK_STRIDX_POW 118 /* 'pow' */
- #define DUK_STRIDX_MIN 119 /* 'min' */
- #define DUK_STRIDX_MAX 120 /* 'max' */
- #define DUK_STRIDX_LOG 121 /* 'log' */
- #define DUK_STRIDX_FLOOR 122 /* 'floor' */
- #define DUK_STRIDX_EXP 123 /* 'exp' */
- #define DUK_STRIDX_COS 124 /* 'cos' */
- #define DUK_STRIDX_CEIL 125 /* 'ceil' */
- #define DUK_STRIDX_ATAN2 126 /* 'atan2' */
- #define DUK_STRIDX_ATAN 127 /* 'atan' */
- #define DUK_STRIDX_ASIN 128 /* 'asin' */
- #define DUK_STRIDX_ACOS 129 /* 'acos' */
- #define DUK_STRIDX_ABS 130 /* 'abs' */
- #define DUK_STRIDX_SQRT2 131 /* 'SQRT2' */
- #define DUK_STRIDX_SQRT1_2 132 /* 'SQRT1_2' */
- #define DUK_STRIDX_PI 133 /* 'PI' */
- #define DUK_STRIDX_LOG10E 134 /* 'LOG10E' */
- #define DUK_STRIDX_LOG2E 135 /* 'LOG2E' */
- #define DUK_STRIDX_LN2 136 /* 'LN2' */
- #define DUK_STRIDX_LN10 137 /* 'LN10' */
- #define DUK_STRIDX_E 138 /* 'E' */
- #define DUK_STRIDX_MESSAGE 139 /* 'message' */
- #define DUK_STRIDX_NAME 140 /* 'name' */
- #define DUK_STRIDX_INPUT 141 /* 'input' */
- #define DUK_STRIDX_INDEX 142 /* 'index' */
- #define DUK_STRIDX_ESCAPED_EMPTY_REGEXP 143 /* '(?:)' */
- #define DUK_STRIDX_LAST_INDEX 144 /* 'lastIndex' */
- #define DUK_STRIDX_MULTILINE 145 /* 'multiline' */
- #define DUK_STRIDX_IGNORE_CASE 146 /* 'ignoreCase' */
- #define DUK_STRIDX_SOURCE 147 /* 'source' */
- #define DUK_STRIDX_TEST 148 /* 'test' */
- #define DUK_STRIDX_EXEC 149 /* 'exec' */
- #define DUK_STRIDX_TO_GMT_STRING 150 /* 'toGMTString' */
- #define DUK_STRIDX_SET_YEAR 151 /* 'setYear' */
- #define DUK_STRIDX_GET_YEAR 152 /* 'getYear' */
- #define DUK_STRIDX_TO_JSON 153 /* 'toJSON' */
- #define DUK_STRIDX_TO_ISO_STRING 154 /* 'toISOString' */
- #define DUK_STRIDX_TO_UTC_STRING 155 /* 'toUTCString' */
- #define DUK_STRIDX_SET_UTC_FULL_YEAR 156 /* 'setUTCFullYear' */
- #define DUK_STRIDX_SET_FULL_YEAR 157 /* 'setFullYear' */
- #define DUK_STRIDX_SET_UTC_MONTH 158 /* 'setUTCMonth' */
- #define DUK_STRIDX_SET_MONTH 159 /* 'setMonth' */
- #define DUK_STRIDX_SET_UTC_DATE 160 /* 'setUTCDate' */
- #define DUK_STRIDX_SET_DATE 161 /* 'setDate' */
- #define DUK_STRIDX_SET_UTC_HOURS 162 /* 'setUTCHours' */
- #define DUK_STRIDX_SET_HOURS 163 /* 'setHours' */
- #define DUK_STRIDX_SET_UTC_MINUTES 164 /* 'setUTCMinutes' */
- #define DUK_STRIDX_SET_MINUTES 165 /* 'setMinutes' */
- #define DUK_STRIDX_SET_UTC_SECONDS 166 /* 'setUTCSeconds' */
- #define DUK_STRIDX_SET_SECONDS 167 /* 'setSeconds' */
- #define DUK_STRIDX_SET_UTC_MILLISECONDS 168 /* 'setUTCMilliseconds' */
- #define DUK_STRIDX_SET_MILLISECONDS 169 /* 'setMilliseconds' */
- #define DUK_STRIDX_SET_TIME 170 /* 'setTime' */
- #define DUK_STRIDX_GET_TIMEZONE_OFFSET 171 /* 'getTimezoneOffset' */
- #define DUK_STRIDX_GET_UTC_MILLISECONDS 172 /* 'getUTCMilliseconds' */
- #define DUK_STRIDX_GET_MILLISECONDS 173 /* 'getMilliseconds' */
- #define DUK_STRIDX_GET_UTC_SECONDS 174 /* 'getUTCSeconds' */
- #define DUK_STRIDX_GET_SECONDS 175 /* 'getSeconds' */
- #define DUK_STRIDX_GET_UTC_MINUTES 176 /* 'getUTCMinutes' */
- #define DUK_STRIDX_GET_MINUTES 177 /* 'getMinutes' */
- #define DUK_STRIDX_GET_UTC_HOURS 178 /* 'getUTCHours' */
- #define DUK_STRIDX_GET_HOURS 179 /* 'getHours' */
- #define DUK_STRIDX_GET_UTC_DAY 180 /* 'getUTCDay' */
- #define DUK_STRIDX_GET_DAY 181 /* 'getDay' */
- #define DUK_STRIDX_GET_UTC_DATE 182 /* 'getUTCDate' */
- #define DUK_STRIDX_GET_DATE 183 /* 'getDate' */
- #define DUK_STRIDX_GET_UTC_MONTH 184 /* 'getUTCMonth' */
- #define DUK_STRIDX_GET_MONTH 185 /* 'getMonth' */
- #define DUK_STRIDX_GET_UTC_FULL_YEAR 186 /* 'getUTCFullYear' */
- #define DUK_STRIDX_GET_FULL_YEAR 187 /* 'getFullYear' */
- #define DUK_STRIDX_GET_TIME 188 /* 'getTime' */
- #define DUK_STRIDX_TO_LOCALE_TIME_STRING 189 /* 'toLocaleTimeString' */
- #define DUK_STRIDX_TO_LOCALE_DATE_STRING 190 /* 'toLocaleDateString' */
- #define DUK_STRIDX_TO_TIME_STRING 191 /* 'toTimeString' */
- #define DUK_STRIDX_TO_DATE_STRING 192 /* 'toDateString' */
- #define DUK_STRIDX_NOW 193 /* 'now' */
- #define DUK_STRIDX_UTC 194 /* 'UTC' */
- #define DUK_STRIDX_PARSE 195 /* 'parse' */
- #define DUK_STRIDX_TO_PRECISION 196 /* 'toPrecision' */
- #define DUK_STRIDX_TO_EXPONENTIAL 197 /* 'toExponential' */
- #define DUK_STRIDX_TO_FIXED 198 /* 'toFixed' */
- #define DUK_STRIDX_POSITIVE_INFINITY 199 /* 'POSITIVE_INFINITY' */
- #define DUK_STRIDX_NEGATIVE_INFINITY 200 /* 'NEGATIVE_INFINITY' */
- #define DUK_STRIDX_NAN 201 /* 'NaN' */
- #define DUK_STRIDX_MIN_VALUE 202 /* 'MIN_VALUE' */
- #define DUK_STRIDX_MAX_VALUE 203 /* 'MAX_VALUE' */
- #define DUK_STRIDX_SUBSTR 204 /* 'substr' */
- #define DUK_STRIDX_TRIM 205 /* 'trim' */
- #define DUK_STRIDX_TO_LOCALE_UPPER_CASE 206 /* 'toLocaleUpperCase' */
- #define DUK_STRIDX_TO_UPPER_CASE 207 /* 'toUpperCase' */
- #define DUK_STRIDX_TO_LOCALE_LOWER_CASE 208 /* 'toLocaleLowerCase' */
- #define DUK_STRIDX_TO_LOWER_CASE 209 /* 'toLowerCase' */
- #define DUK_STRIDX_SUBSTRING 210 /* 'substring' */
- #define DUK_STRIDX_SPLIT 211 /* 'split' */
- #define DUK_STRIDX_SEARCH 212 /* 'search' */
- #define DUK_STRIDX_REPLACE 213 /* 'replace' */
- #define DUK_STRIDX_MATCH 214 /* 'match' */
- #define DUK_STRIDX_LOCALE_COMPARE 215 /* 'localeCompare' */
- #define DUK_STRIDX_CHAR_CODE_AT 216 /* 'charCodeAt' */
- #define DUK_STRIDX_CHAR_AT 217 /* 'charAt' */
- #define DUK_STRIDX_FROM_CHAR_CODE 218 /* 'fromCharCode' */
- #define DUK_STRIDX_REDUCE_RIGHT 219 /* 'reduceRight' */
- #define DUK_STRIDX_REDUCE 220 /* 'reduce' */
- #define DUK_STRIDX_FILTER 221 /* 'filter' */
- #define DUK_STRIDX_MAP 222 /* 'map' */
- #define DUK_STRIDX_FOR_EACH 223 /* 'forEach' */
- #define DUK_STRIDX_SOME 224 /* 'some' */
- #define DUK_STRIDX_EVERY 225 /* 'every' */
- #define DUK_STRIDX_LAST_INDEX_OF 226 /* 'lastIndexOf' */
- #define DUK_STRIDX_INDEX_OF 227 /* 'indexOf' */
- #define DUK_STRIDX_UNSHIFT 228 /* 'unshift' */
- #define DUK_STRIDX_SPLICE 229 /* 'splice' */
- #define DUK_STRIDX_SORT 230 /* 'sort' */
- #define DUK_STRIDX_SLICE 231 /* 'slice' */
- #define DUK_STRIDX_SHIFT 232 /* 'shift' */
- #define DUK_STRIDX_REVERSE 233 /* 'reverse' */
- #define DUK_STRIDX_PUSH 234 /* 'push' */
- #define DUK_STRIDX_POP 235 /* 'pop' */
- #define DUK_STRIDX_JOIN 236 /* 'join' */
- #define DUK_STRIDX_CONCAT 237 /* 'concat' */
- #define DUK_STRIDX_IS_ARRAY 238 /* 'isArray' */
- #define DUK_STRIDX_LC_ARGUMENTS 239 /* 'arguments' */
- #define DUK_STRIDX_CALLER 240 /* 'caller' */
- #define DUK_STRIDX_BIND 241 /* 'bind' */
- #define DUK_STRIDX_CALL 242 /* 'call' */
- #define DUK_STRIDX_APPLY 243 /* 'apply' */
- #define DUK_STRIDX_PROPERTY_IS_ENUMERABLE 244 /* 'propertyIsEnumerable' */
- #define DUK_STRIDX_IS_PROTOTYPE_OF 245 /* 'isPrototypeOf' */
- #define DUK_STRIDX_HAS_OWN_PROPERTY 246 /* 'hasOwnProperty' */
- #define DUK_STRIDX_VALUE_OF 247 /* 'valueOf' */
- #define DUK_STRIDX_TO_LOCALE_STRING 248 /* 'toLocaleString' */
- #define DUK_STRIDX_TO_STRING 249 /* 'toString' */
- #define DUK_STRIDX_CONSTRUCTOR 250 /* 'constructor' */
- #define DUK_STRIDX_SET 251 /* 'set' */
- #define DUK_STRIDX_GET 252 /* 'get' */
- #define DUK_STRIDX_ENUMERABLE 253 /* 'enumerable' */
- #define DUK_STRIDX_CONFIGURABLE 254 /* 'configurable' */
- #define DUK_STRIDX_WRITABLE 255 /* 'writable' */
- #define DUK_STRIDX_VALUE 256 /* 'value' */
- #define DUK_STRIDX_KEYS 257 /* 'keys' */
- #define DUK_STRIDX_IS_EXTENSIBLE 258 /* 'isExtensible' */
- #define DUK_STRIDX_IS_FROZEN 259 /* 'isFrozen' */
- #define DUK_STRIDX_IS_SEALED 260 /* 'isSealed' */
- #define DUK_STRIDX_PREVENT_EXTENSIONS 261 /* 'preventExtensions' */
- #define DUK_STRIDX_FREEZE 262 /* 'freeze' */
- #define DUK_STRIDX_SEAL 263 /* 'seal' */
- #define DUK_STRIDX_DEFINE_PROPERTIES 264 /* 'defineProperties' */
- #define DUK_STRIDX_DEFINE_PROPERTY 265 /* 'defineProperty' */
- #define DUK_STRIDX_CREATE 266 /* 'create' */
- #define DUK_STRIDX_GET_OWN_PROPERTY_NAMES 267 /* 'getOwnPropertyNames' */
- #define DUK_STRIDX_GET_OWN_PROPERTY_DESCRIPTOR 268 /* 'getOwnPropertyDescriptor' */
- #define DUK_STRIDX_GET_PROTOTYPE_OF 269 /* 'getPrototypeOf' */
- #define DUK_STRIDX_PROTOTYPE 270 /* 'prototype' */
- #define DUK_STRIDX_LENGTH 271 /* 'length' */
- #define DUK_STRIDX_ALERT 272 /* 'alert' */
- #define DUK_STRIDX_PRINT 273 /* 'print' */
- #define DUK_STRIDX_UNESCAPE 274 /* 'unescape' */
- #define DUK_STRIDX_ESCAPE 275 /* 'escape' */
- #define DUK_STRIDX_ENCODE_URI_COMPONENT 276 /* 'encodeURIComponent' */
- #define DUK_STRIDX_ENCODE_URI 277 /* 'encodeURI' */
- #define DUK_STRIDX_DECODE_URI_COMPONENT 278 /* 'decodeURIComponent' */
- #define DUK_STRIDX_DECODE_URI 279 /* 'decodeURI' */
- #define DUK_STRIDX_IS_FINITE 280 /* 'isFinite' */
- #define DUK_STRIDX_IS_NAN 281 /* 'isNaN' */
- #define DUK_STRIDX_PARSE_FLOAT 282 /* 'parseFloat' */
- #define DUK_STRIDX_PARSE_INT 283 /* 'parseInt' */
- #define DUK_STRIDX_EVAL 284 /* 'eval' */
- #define DUK_STRIDX_URI_ERROR 285 /* 'URIError' */
- #define DUK_STRIDX_TYPE_ERROR 286 /* 'TypeError' */
- #define DUK_STRIDX_SYNTAX_ERROR 287 /* 'SyntaxError' */
- #define DUK_STRIDX_REFERENCE_ERROR 288 /* 'ReferenceError' */
- #define DUK_STRIDX_RANGE_ERROR 289 /* 'RangeError' */
- #define DUK_STRIDX_EVAL_ERROR 290 /* 'EvalError' */
- #define DUK_STRIDX_BREAK 291 /* 'break' */
- #define DUK_STRIDX_CASE 292 /* 'case' */
- #define DUK_STRIDX_CATCH 293 /* 'catch' */
- #define DUK_STRIDX_CONTINUE 294 /* 'continue' */
- #define DUK_STRIDX_DEBUGGER 295 /* 'debugger' */
- #define DUK_STRIDX_DEFAULT 296 /* 'default' */
- #define DUK_STRIDX_DELETE 297 /* 'delete' */
- #define DUK_STRIDX_DO 298 /* 'do' */
- #define DUK_STRIDX_ELSE 299 /* 'else' */
- #define DUK_STRIDX_FINALLY 300 /* 'finally' */
- #define DUK_STRIDX_FOR 301 /* 'for' */
- #define DUK_STRIDX_LC_FUNCTION 302 /* 'function' */
- #define DUK_STRIDX_IF 303 /* 'if' */
- #define DUK_STRIDX_IN 304 /* 'in' */
- #define DUK_STRIDX_INSTANCEOF 305 /* 'instanceof' */
- #define DUK_STRIDX_NEW 306 /* 'new' */
- #define DUK_STRIDX_RETURN 307 /* 'return' */
- #define DUK_STRIDX_SWITCH 308 /* 'switch' */
- #define DUK_STRIDX_THIS 309 /* 'this' */
- #define DUK_STRIDX_THROW 310 /* 'throw' */
- #define DUK_STRIDX_TRY 311 /* 'try' */
- #define DUK_STRIDX_TYPEOF 312 /* 'typeof' */
- #define DUK_STRIDX_VAR 313 /* 'var' */
- #define DUK_STRIDX_VOID 314 /* 'void' */
- #define DUK_STRIDX_WHILE 315 /* 'while' */
- #define DUK_STRIDX_WITH 316 /* 'with' */
- #define DUK_STRIDX_CLASS 317 /* 'class' */
- #define DUK_STRIDX_CONST 318 /* 'const' */
- #define DUK_STRIDX_ENUM 319 /* 'enum' */
- #define DUK_STRIDX_EXPORT 320 /* 'export' */
- #define DUK_STRIDX_EXTENDS 321 /* 'extends' */
- #define DUK_STRIDX_IMPORT 322 /* 'import' */
- #define DUK_STRIDX_SUPER 323 /* 'super' */
- #define DUK_STRIDX_LC_NULL 324 /* 'null' */
- #define DUK_STRIDX_TRUE 325 /* 'true' */
- #define DUK_STRIDX_FALSE 326 /* 'false' */
- #define DUK_STRIDX_IMPLEMENTS 327 /* 'implements' */
- #define DUK_STRIDX_INTERFACE 328 /* 'interface' */
- #define DUK_STRIDX_LET 329 /* 'let' */
- #define DUK_STRIDX_PACKAGE 330 /* 'package' */
- #define DUK_STRIDX_PRIVATE 331 /* 'private' */
- #define DUK_STRIDX_PROTECTED 332 /* 'protected' */
- #define DUK_STRIDX_PUBLIC 333 /* 'public' */
- #define DUK_STRIDX_STATIC 334 /* 'static' */
- #define DUK_STRIDX_YIELD 335 /* 'yield' */
- #define DUK_HEAP_STRING_UC_LOGGER(heap) DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_LOGGER)
- #define DUK_HTHREAD_STRING_UC_LOGGER(thr) DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_LOGGER)
- #define DUK_HEAP_STRING_UC_THREAD(heap) DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_THREAD)
- #define DUK_HTHREAD_STRING_UC_THREAD(thr) DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_THREAD)
- #define DUK_HEAP_STRING_UC_POINTER(heap) DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_POINTER)
- #define DUK_HTHREAD_STRING_UC_POINTER(thr) DUK_HTHREAD_GET_STRING((thr),DUK_STRIDX_UC_POINTER)
- #define DUK_HEAP_STRING_UC_BUFFER(heap) DUK_HEAP_GET_STRING((heap),DUK_STRIDX_UC_BUFFE…
Large files files are truncated, but you can click here to view the full file