This example directly from the Attachment Guide seems very close to what you want - replace the new Integer objects with the new String objects.
I would read the semantics of local and persistent descriptors, because I think that is where you are stuck.
This line:
v8::Handle<v8::Array> result;
It does not create a new array - it only creates a Handle, which can later be filled with an array.
source share