Commit 3ed74a8d authored by Iain Ireland's avatar Iain Ireland
Browse files

Bug 1823212: Fix error handling in tryAttachArguments r=mgaudet

parent 405d922b
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
with (newGlobal(this)) {
  eval(`
        function bar() {}
        function foo(a) {
          try {
            foo();
          } catch {
            bar(...arguments);
          }
        }
        foo();
  `);
}
+1 −1
Original line number Diff line number Diff line
@@ -5532,7 +5532,7 @@ AttachDecision OptimizeSpreadCallIRGenerator::tryAttachArguments() {

  Rooted<Shape*> shape(cx_, GlobalObject::getArrayShapeWithDefaultProto(cx_));
  if (!shape) {
    cx_->recoverFromOutOfMemory();
    cx_->clearPendingException();
    return AttachDecision::NoAction;
  }