Showing the changes to libraries/script-engine/src/XMLHttpRequestClass.cpp (1 of 14 files). Show all
Unified · Split
| @@ -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(); |