Skip to content

Commit 97408ed

Browse files
committed
fixup: remove the c++ part
Signed-off-by: Daeyeon Jeong [email protected]
1 parent 593536f commit 97408ed

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

lib/internal/webstreams/readablestream.js

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ const {
2828
Uint8Array,
2929
} = primordials;
3030

31-
const { arrayBufferIsDetached } = internalBinding('util');
32-
3331
const {
3432
codes: {
3533
ERR_ILLEGAL_CONSTRUCTOR,

src/node_util.cc

-8
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,6 @@ void ArrayBufferViewHasBuffer(const FunctionCallbackInfo<Value>& args) {
207207
args.GetReturnValue().Set(args[0].As<ArrayBufferView>()->HasBuffer());
208208
}
209209

210-
void ArrayBufferIsDetached(const FunctionCallbackInfo<Value>& args) {
211-
CHECK(args[0]->IsArrayBuffer());
212-
v8::Local<v8::ArrayBuffer> ab = args[0].As<v8::ArrayBuffer>();
213-
args.GetReturnValue().Set(ab->GetBackingStore()->Data() == nullptr);
214-
}
215-
216210
class WeakReference : public BaseObject {
217211
public:
218212
WeakReference(Environment* env, Local<Object> object, Local<Object> target)
@@ -340,7 +334,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
340334
registry->Register(GetExternalValue);
341335
registry->Register(Sleep);
342336
registry->Register(ArrayBufferViewHasBuffer);
343-
registry->Register(ArrayBufferIsDetached);
344337
registry->Register(WeakReference::New);
345338
registry->Register(WeakReference::Get);
346339
registry->Register(WeakReference::IncRef);
@@ -387,7 +380,6 @@ void Initialize(Local<Object> target,
387380
env->SetMethod(target, "sleep", Sleep);
388381

389382
env->SetMethod(target, "arrayBufferViewHasBuffer", ArrayBufferViewHasBuffer);
390-
env->SetMethod(target, "arrayBufferIsDetached", ArrayBufferIsDetached);
391383
Local<Object> constants = Object::New(env->isolate());
392384
NODE_DEFINE_CONSTANT(constants, ALL_PROPERTIES);
393385
NODE_DEFINE_CONSTANT(constants, ONLY_WRITABLE);

0 commit comments

Comments
 (0)