Exemplo n.º 1
0
ChromiumDLL::JSObjHandle JavaScriptFactory::CreateException(const char* value)
{
	JavaScriptObject *ret = new JavaScriptObject(CefV8Value::CreateString(value));
	ret->setException();

	return ret;
}
ChromiumDLL::JSObjHandle JavaScriptFactory::CreateException(const char* value)
{
    JavaScriptObject *ret = new JavaScriptObject(JSONNode("", value));
    ret->setException();
    return ret;
}