Backed out changeset 2eca4618f579 (bug 1357012) for spidermonkey bustage
authorIris Hsiao <ihsiao@mozilla.com>
Wed, 19 Apr 2017 14:57:26 +0800
changeset 565151 edc49fadcda2dd849cc0f90a5d6ceb8d05c079bf
parent 565150 2eca4618f579c77f8fd3f5303b19b999fcc3a177
child 565152 6d6e6547b97c31bfe1e0f5df714b15fa39adfcb9
push id54802
push userdgottwald@mozilla.com
push dateWed, 19 Apr 2017 15:26:27 +0000
bugs1357012
milestone55.0a1
backs out2eca4618f579c77f8fd3f5303b19b999fcc3a177
Backed out changeset 2eca4618f579 (bug 1357012) for spidermonkey bustage
js/src/jsscript.cpp
--- a/js/src/jsscript.cpp
+++ b/js/src/jsscript.cpp
@@ -1853,20 +1853,18 @@ ScriptSource::tryCompressOffThread(JSCon
     // When parsing off-thread, the above attempts will fail and the attempt
     // made in ParseTask::finish will succeed.
     if (!CurrentThreadCanAccessRuntime(cx->runtime()))
         return true;
 
     // Heap allocate the task. It will be freed upon compression
     // completing in AttachFinishedCompressedSources.
     auto task = MakeUnique<SourceCompressionTask>(cx->runtime(), this);
-    if (!task) {
-        ReportOutOfMemory(cx);
+    if (!task)
         return false;
-    }
     return EnqueueOffThreadCompression(cx, Move(task));
 }
 
 MOZ_MUST_USE bool
 ScriptSource::setCompressedSource(JSContext* cx,
                                   mozilla::UniquePtr<char[], JS::FreePolicy>&& raw,
                                   size_t rawLength,
                                   size_t sourceLength)