document.createVariable return float instead of string

master
Jeremy Hu 2019-07-22 17:32:35 +09:30
parent 930b7ad4a6
commit 54b1c95270
1 changed files with 1 additions and 1 deletions

View File

@ -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);