FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-api-cn/vm/vm_compilefunction_code_params_options.md at master · nodejscn/node-api-cn · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodejscn
/
node-api-cn
Public
Notifications
You must be signed in to change notification settings
Fork
1.3k
Star
1.4k
Code
Issues
1
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-api-cn
/
vm
/
vm_compilefunction_code_params_options.md
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (25 loc) · 1.5 KB
Breadcrumbs
node-api-cn
/
vm
/
vm_compilefunction_code_params_options.md
Copy path
File metadata and controls
26 lines (25 loc) · 1.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!-- YAML
added:
v10
.10
.0
changes:
-
version
:
v14
.3
.0
pr
-
url
:
https
:
/
/
github
.
com
/
nodejs
/
node
/
pull
/
33364
description:
Removal
of
`importModuleDynamically`
due
to
compatibility
issues
.
-
version
:
-
v14
.1
.0
-
v13
.14
.0
pr
-
url
:
https
:
/
/
github
.
com
/
nodejs
/
node
/
pull
/
32985
description:
The
`importModuleDynamically`
option
is
now
supported
.
-->
*
`code`
{
string
}
需要编译的函数体。
*
`params`
{
string
[
]
}
包含所有函数参数的字符串数组。
*
`options`
{
Object
}
*
`filename`
{
string
}
定义此脚本生成的堆栈跟踪信息中使用的文件名。
**
默认值
:
**
`''`
。
*
`lineOffset`
{
number
}
定义此脚本生成的堆栈跟踪信息中显示的行号偏移量。
**
默认值
:
**
`0`
。
*
`columnOffset`
{
number
}
定义此脚本生成的堆栈跟踪中显示的列偏移量。
**
默认值
:
**
`0`
。
*
`cachedData`
{
Buffer
|
TypedArray
|
DataView
}
为源码提供一个
`Buffer`
、
`TypedArray`
或
`DataView`
格式的
V8
代码缓存。
*
`produceCachedData`
{
boolean
}
定义是否需要生成新的缓存数据。
**
默认值
:
**
`false`
。
*
`parsingContext`
{
Object
}
编译函数的
[
上下文隔离化
]
[
contextified
]
的对象。
*
`contextExtensions`
{
Object
[
]
}
包含要在编译时应用的上下文扩展(包装当前范围的对象)的集合的数组。
**
默认值
:
**
`[]`
。
*
返回
:
{
Function
}
将给定的代码编译到提供的上下文中(如果没有提供上下文,则使用当前上下文),并返回包装了给定
`params`
的函数。
Back
|
FazBrowse Home
|
New Git URL