javascript - How to add a custom class in v8? -


thank reading question.

i trying embbed google v8 game engine. need add bytes(or buffer, in node.js) class program. have read implentation of buffer in node.js, but, that's ugly in mind.

the class want bytes class in python, can decode string , encoded string, , have own operator such '+' , '*'.

it seems way modify v8 itself?

i spent 2 days reading code in v8, getting more , more chaos. example, string class has 2 declarations: in v8.h , objects.h, , big diffirences exist in both. terrible big macros making me crazy, too.

my question same this: how add new class google v8? , yiding thinks he/she not need modify v8.

then asked same questions, too:

where can find guides modifying v8's code?

or can find docs v8's design architecture?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -