Bug 1161239 - Emit a warning if the respondWith handler is resolved with a non-Object value; r=baku

This commit is contained in:
Ehsan Akhgari 2015-05-04 16:51:51 -04:00
parent 2c4f532160
commit 86a6b07e7c

View File

@ -224,6 +224,7 @@ RespondWithHandler::ResolvedCallback(JSContext* aCx, JS::Handle<JS::Value> aValu
AutoCancel autoCancel(this);
if (!aValue.isObject()) {
NS_WARNING("FetchEvent::RespondWith was passed a promise resolved to a non-Object value");
return;
}