How can I get the memory address of a JavaScript variable?

后端 未结 3 963
南方客
南方客 2020-11-28 09:09

Is it possible to find the memory address of a JavaScript variable? The JavaScript code is part of (embedded into) a normal application where JavaScript is used as a front

3条回答
  •  执笔经年
    2020-11-28 09:51

    I think it's possible, but you'd have to:

    1. download the node.js source code.
    2. add in your function manually (like returning the memory address of a pointer, etc.)
    3. compile it and use it as your node executable.

提交回复
热议问题