Skip to content

Commit

Permalink
app_jsdt: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Mar 30, 2023
1 parent 0a062c9 commit ca2c511
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/modules/app_jsdt/app_jsdt_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int ki_app_jsdt_dostring(sip_msg_t *msg, str *script)
}
if(!jsdt_sr_initialized())
{
LM_ERR("jsdt env not intitialized");
LM_ERR("jsdt env not initialized");
return -1;
}
memcpy(_jsdt_buf_stack[0], script->s, script->len);
Expand Down Expand Up @@ -249,7 +249,7 @@ static int ki_app_jsdt_dofile(sip_msg_t *msg, str *script)
}
if(!jsdt_sr_initialized())
{
LM_ERR("jsdt env not intitialized");
LM_ERR("jsdt env not initialized");
return -1;
}
memcpy(_jsdt_buf_stack[0], script->s, script->len);
Expand Down Expand Up @@ -282,7 +282,7 @@ static int ki_app_jsdt_runstring(sip_msg_t *msg, str *script)
}
if(!jsdt_sr_initialized())
{
LM_ERR("jsdt env not intitialized");
LM_ERR("jsdt env not initialized");
return -1;
}
memcpy(_jsdt_buf_stack[0], script->s, script->len);
Expand Down Expand Up @@ -313,7 +313,7 @@ static int w_app_jsdt_run(struct sip_msg *msg, char *func, char *p1, char *p2,
str s;
if(!jsdt_sr_initialized())
{
LM_ERR("jsdt env not intitialized");
LM_ERR("jsdt env not initialized");
return -1;
}
if(fixup_get_svalue(msg, (gparam_p)func, &s)<0)
Expand Down
4 changes: 2 additions & 2 deletions src/modules/app_jsdt/doc/app_jsdt_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
and parameter 'load'. Therefore jsdt_run() cannot execute functions
from scripts loaded via jsdt_dofile() in config. This is kind of
caching mode, avoiding reading file every time, but you must be sure
you do not have someting that is executed by default and requires
you do not have something that is executed by default and requires
access to SIP message. This environment is also used by KEMI
framework for the config SIP routing functions.
</para>
Expand Down Expand Up @@ -91,7 +91,7 @@
Set the path to the JavaScript file to be loaded at startup. Then you
can use jsdt_run(function, params) to execute a function from the
script at runtime. If you use it for KEMI configuration,
then it has to include the requited functions.
then it has to include the required functions.
</para>
<para>
<emphasis>
Expand Down
10 changes: 5 additions & 5 deletions src/modules/app_jsdt/duktape.c
Original file line number Diff line number Diff line change
Expand Up @@ -7709,7 +7709,7 @@ struct duk_hcompfunc {
* executing random data as bytecode due to a compiler error.
*
* Note: values in the data buffer must be incref'd (they will
* be decref'd on release) for every compiledfunction referring
* be decref'd on release) for every compiled function referring
* to the 'data' element.
*/

Expand Down Expand Up @@ -38049,7 +38049,7 @@ DUK_LOCAL void duk__json_dec_buffer(duk_json_dec_ctx *js_ctx) {
* - EOF detection
* - Unknown length of input and output
*
* The best approach here would be a bufwriter and a reasonaly sized
* The best approach here would be a bufwriter and a reasonably sized
* safe inner loop (e.g. 64 output bytes at a time).
*/

Expand Down Expand Up @@ -66572,7 +66572,7 @@ DUK_LOCAL void duk__create_arguments_object(duk_hthread *thr, duk_hobject *func,
*
* Note that the specification requires that the *same* thrower
* built-in object is used here! See E5 Section 10.6 main
* algoritm, step 14, and Section 13.2.3 which describes the
* algorithm, step 14, and Section 13.2.3 which describes the
* thrower. See test case test-arguments-throwers.js.
*/

Expand Down Expand Up @@ -72199,7 +72199,7 @@ DUK_LOCAL void duk__nud_array_literal(duk_compiler_ctx *comp_ctx, duk_ivalue *re
}
}

/* Update initil size for NEWARR, doesn't need to be exact and is
/* Update initial size for NEWARR, doesn't need to be exact and is
* capped at A field limit.
*/
#if !defined(DUK_USE_PREFER_SIZE)
Expand Down Expand Up @@ -76850,7 +76850,7 @@ DUK_LOCAL void duk__parse_func_like_raw(duk_compiler_ctx *comp_ctx, duk_small_ui
* Formal argument list
*
* We don't check for prohibited names or for duplicate argument
* names here, becase we don't yet know whether the function will
* names here, because we don't yet know whether the function will
* be strict. Function body parsing handles this retroactively.
*/

Expand Down

0 comments on commit ca2c511

Please sign in to comment.