()
| 152 | } |
| 153 | |
| 154 | function checkFFIPermission() { |
| 155 | if (!permission.isEnabled()) { |
| 156 | return; |
| 157 | } |
| 158 | |
| 159 | if (permission.has('ffi') || permission.isAuditMode()) { |
| 160 | return; |
| 161 | } |
| 162 | |
| 163 | throw new ERR_ACCESS_DENIED( |
| 164 | 'Access to this API has been restricted. Use --allow-ffi to manage permissions.', |
| 165 | 'FFI'); |
| 166 | } |
| 167 | |
| 168 | function dlopen(path, definitions) { |
| 169 | checkFFIPermission(); |
no test coverage detected
searching dependent graphs…