Skip to content

Commit

Permalink
transform stream
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 19, 2024
1 parent b80fe20 commit 19f5405
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtins/web/streams/transform-stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include "js/Conversions.h"
#include "js/Stream.h"
#include "builtin.h"

#include "../fetch/request-response.h"
#include "native-stream-sink.h"
#include "native-stream-source.h"
#include "transform-stream-default-controller.h"
Expand Down Expand Up @@ -277,7 +277,6 @@ JSObject *TransformStream::owner(JSObject *self) {

void TransformStream::set_owner(JSObject *self, JSObject *owner) {
MOZ_ASSERT(is_instance(self));
MOZ_ASSERT(web::fetch::RequestOrResponse::is_instance(owner));
MOZ_ASSERT(JS::GetReservedSlot(self, TransformStream::Slots::Owner).isUndefined());
JS::SetReservedSlot(self, TransformStream::Slots::Owner, JS::ObjectValue(*owner));
}
Expand Down

0 comments on commit 19f5405

Please sign in to comment.