Skip to content

V8 Changes - HasIndexedPropertiesInExternalArrayData, GetIndexedPropertiesExternalArrayDataLength, GetIndexedPropertiesExternalArrayData no longer available - what to use instead? #2977

Description

@metabench

Since v2.2.0 V8 has changed in a way so that my addon would no longer compile.

This would work previously:

Local<Object> obj = args[0].As<Object>();
if (obj->HasIndexedPropertiesInExternalArrayData()) {
    arr_data_structure_length = obj->GetIndexedPropertiesExternalArrayDataLength();
    arr = static_cast<double*>(obj->GetIndexedPropertiesExternalArrayData());
}

Now I get errors such as

 error C2039: 'HasIndexedPropertiesInExternalArrayData' : is not a member of 'v8::Object'
 error C2039: 'GetIndexedPropertiesExternalArrayDataLength' : is not a member of 'v8::Object'
 error C2039: 'GetIndexedPropertiesExternalArrayData' : is not a member of 'v8::Object'

How should it be done now?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues asking questions about Node.js.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions