mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Inline Buffer::HasInstance
This commit is contained in:
1 parent
7c9919f810
commit
1660db6b87
2 files changed
+5
-9
No files matched your search
@@ -339,14 +339,6 @@ Handle<Value> Buffer::Utf8ByteLength(const Arguments &args) {
|
||||
}
|
||||
|
||||
|
||||
bool Buffer::HasInstance(Handle<Value> val) {
|
||||
if (!val->IsObject()) return false;
|
||||
Local<Object> obj = val->ToObject();
|
||||
return constructor_template->HasInstance(obj);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Buffer::Initialize(Handle<Object> target) {
|
||||
HandleScope scope;
|
||||
|
||||
|
||||
Reference in new issue
Block a user