History

V8-related cleanup

ksuprynowicz committed 3 years ago

Commit 3c804111 parent 30f460814 files · +5 −62Browse files

Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 14 files). Show all

Unified · Split

libraries/script-engine/src/XMLHttpRequestClass.cpp+1−0
@@ -221,6 +221,7 @@ void XMLHttpRequestClass::requestFinished() { · 220 unmodified lines
221 _rawResponseData.append(_reply->readAll());221 _rawResponseData.append(_reply->readAll());
222 222
223 if (_responseType == "json") {223 if (_responseType == "json") {
224 // V8TODO: V8 JSON parser needs to be used instead
224 _responseData = _engine->evaluate("(" + QString(_rawResponseData.data()) + ")");225 _responseData = _engine->evaluate("(" + QString(_rawResponseData.data()) + ")");
225 if (_responseData.isError()) {226 if (_responseData.isError()) {
226 _engine->clearExceptions();227 _engine->clearExceptions();