GetBuiltinsCount
调查我的代码中的段错误,在V8 源代码中查找导致我得到以下评论:
/**
* NativesStore stores the 'native' (builtin) JS libraries.
*
* NativesStore needs to be initialized before using V8, usually by the
* embedder calling v8::SetNativesDataBlob, which calls SetNativesFromFile
* below.
*/
我应该如何使用嵌入器v8::SetNativesDataBlob
?
d8 解释器确实调用了这个方法,但根本不清楚它在做什么以及为什么。基本示例不调用此方法。