Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/src/main/jni/ObjectManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ObjectManager::JSInstanceInfo* ObjectManager::GetJSInstanceInfo(const Local<Obje
}

bool ObjectManager::IsJsRuntimeObject(const v8::Local<v8::Object>& object) {
int internalFieldCount = NativeScriptExtension::GetInternalFieldCount(object);
int internalFieldCount = object->InternalFieldCount();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well spotted, great job!

const int count = static_cast<int>(MetadataNodeKeys::END);
return internalFieldCount == count;
}
Expand Down
4 changes: 4 additions & 0 deletions runtime/src/main/jni/include/V8NativeScriptExtension.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace v8 {

static v8::Local<v8::Array> GetPropertyKeys(v8::Isolate *isolate, const v8::Local<v8::Context>& context, const v8::Local<v8::Object>& object, bool& success);

/*
* Deprecated. Use V8 Object.InternalFieldCount() instead.
* TODO: Pete: remove in following 6.x update
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can almost bet my leg that no one's using it, but just to be safe.

static int GetInternalFieldCount(const v8::Local<v8::Object>& object);

static void CpuFeaturesProbe(bool cross_compile);
Expand Down