Commit 565548c9 authored by Michael Droettboom's avatar Michael Droettboom

LINT

parent 66e811da
......@@ -122,8 +122,10 @@ def test_typed_arrays(selenium):
f'window.array = new {jstype}([1, 2, 3, 4]);\n')
else:
selenium.run_js(
f'var buffer = pyodide._malloc(4 * {jstype}.BYTES_PER_ELEMENT);\n'
f'window.array = new {jstype}(pyodide.HEAPU8.buffer, buffer, 4);\n'
'var buffer = pyodide._malloc('
f'4 * {jstype}.BYTES_PER_ELEMENT);\n'
f'window.array = new {jstype}('
'pyodide.HEAPU8.buffer, buffer, 4);\n'
'window.array[0] = 1;\n'
'window.array[1] = 2;\n'
'window.array[2] = 3;\n'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment