We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef769f commit 737dab0Copy full SHA for 737dab0
src/jswrap_functions.c
@@ -87,7 +87,11 @@ JsVar *jswrap_function_constructor(JsVar *args) {
87
if (s) {
88
// copy the string - if a string was supplied already we want to make
89
// sure we have a new (unreferenced) string
90
- jsvAddFunctionParameter(fn, jsvNewFromString("\xFF"), 0);
+ JsVar *paramName = jsvNewFromString("\xFF");
91
+ if (paramName) {
92
+ jsvAppendStringVarComplete(paramName, s);
93
+ jsvAddFunctionParameter(fn, paramName, 0);
94
+ }
95
jsvUnLock(s);
96
}
97
0 commit comments