Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

size of an object reference in Javascript V8

Does anyone know the size of an object reference in Javascript (V8). It's 8 bytes like in C pointers?

Thank you very much.

like image 406
user2965069 Avatar asked Sep 12 '15 12:09

user2965069


Video Answer


1 Answers

Yes, as I remember it takes 8 bytes. Nowadays it's the optimal size in x64 systems for all pointers/references.

like image 107
Walking.In.The.Air Avatar answered Oct 06 '22 00:10

Walking.In.The.Air