I'm having trouble understanding what the SetInternalFieldCount()
function actually does. In the v8 documentation the function is described as setting "the number of internal fields for objects generated from this template." Which is pretty self explanatory and unilluminating.
In the v8 embedder's guide they give this example
point_templ->SetInternalFieldCount(1);
and say "Here the internal field count is set to 1 which means the object has one internal field, with an index of 0, that points to a C++ object."
But what exactly is an internal field and what does setting this value actually tell the program?