document.createVariable return float instead of string
parent
930b7ad4a6
commit
54b1c95270
|
@ -199,7 +199,7 @@ static JSValue js_createVariable(JSContext *context, JSValueConst thisValue,
|
|||
JS_FreeCString(context, name);
|
||||
JS_FreeCString(context, defaultValue);
|
||||
|
||||
return JS_NewString(context, mergedValue.toUtf8().constData());
|
||||
return JS_NewFloat64(context, mergedValue.toDouble());
|
||||
|
||||
fail:
|
||||
JS_FreeCString(context, name);
|
||||
|
|
Loading…
Reference in New Issue