add storage demo & plugin

This commit is contained in:
王劲鹏
2021-05-06 10:01:56 +08:00
committed by osborn
parent 660d75d1ad
commit 394cbe5962
9 changed files with 132 additions and 2 deletions

View File

@@ -90,6 +90,8 @@ v8::Local<v8::Value> Variant2JS(QVariant variant) {
jsValue = array;
} else if (variant.type() == QVariant::Int) {
jsValue = v8::Number::New(isolate, variant.toDouble());
} else if (variant.type() == QVariant::Invalid) {
jsValue = v8::Undefined(isolate);
}
return handle_scope.Escape(jsValue);
}