Skip to content

Commit 7750f24

Browse files
committed
Review python port for checking rust leaks are not due to python port.
1 parent 56e5922 commit 7750f24

File tree

1 file changed

+3
-0
lines changed
  • source/ports/py_port/metacall

1 file changed

+3
-0
lines changed

source/ports/py_port/metacall/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def generate_module(handle_name, handle):
154154
'ts': 'ts',
155155
'jsx': 'ts',
156156
'tsx': 'ts',
157+
# Rust Loader
157158
'rs': 'rs',
158159
# Note: By default js extension uses NodeJS loader instead of JavaScript V8
159160
# Probably in the future we can differenciate between them, but it is not trivial
@@ -211,6 +212,8 @@ def generate_module(handle_name, handle):
211212
call_frame[1][3] == 'metacall_load_from_file'
212213
or call_frame[1][3] == 'metacall_load_from_package'
213214
or call_frame[1][3] == 'metacall_load_from_memory'
215+
or call_frame[1][3] == 'metacall_load_from_file_export'
216+
or call_frame[1][3] == 'metacall_load_from_package_export'
214217
):
215218
return ImportException(f'MetaCall could not import: {name}')
216219

0 commit comments

Comments
 (0)