Huh. It seems that _sometimes_ it returns NULL, for very small values, even when HasIndexedPropertiesInExternalArrayData returns true! Perhaps this is a bug?
Either way, I can check that HasIndexedPropertiesInExternalArrayData is true and GetIndexedPropertiesExternalArrayData is not null, and use this trick then. I can still fall back to the slow and terrible method that is officially supported if that fails. On Wednesday, November 26, 2014 1:56:48 PM UTC-9, Flying Jester wrote: > > I'd like to, but GetIndexedPropertiesExternalArrayData() always returns > NULL. > > On Saturday, November 22, 2014 3:41:35 AM UTC-9, Trevor Norris wrote: >> >> Or you could convert the ArrayBuffer to a Uint8Array and call >> GetIndexedPropertiesExternalArrayData() to get the void*, without needing >> to make it External. Pretty sure it's only a side effect of the >> implementation details, but it's by far faster than the API we've been >> given. > > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
