et);
      assert_equals(Object.getPrototypeOf(dp), child.DOMParser.prototype);
      assert_equals(object_realm(dp), "parent window");
    }, "Constructor in parent window with bad NewTarget from child window");

    test(function() {
      var badNewTarget = Function.prototype.bind.call(new child.Function());
      badNewTarget.prototype = 7;

      var dp = Reflect.construct(DOMParser, [], badNewTarget);
      assert_equals(Object.getPrototypeOf(dp), child.DOMParser.prototype);
      assert_equals(object