You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I tried implementing a module loader that behaves like require/module.exports and followed the example in https://github.com/boa-dev/boa/blob/main/boa_examples/src/bin/modulehandler.rs. Importing a calling functions without arguments works fine but when I try to call something with arguments I always get the error
thread 'nodes::test_javascript::nodes::load_module' panicked at C:\Users\maxim\.cargo\registry\src\index.crates.io-6f17d22bba15001f\boa_engine-0.17.3\src\vm\opcode\define\mod.rs:84:33:
index out of bounds: the len is 1 but the index is 1
To Reproduce
Run the example dev/boa/blob/main/boa_examples/src/bin/modulehandler.rs or use it to run JS-Code that looks something like this:
Describe the bug
I tried implementing a module loader that behaves like require/module.exports and followed the example in https://github.com/boa-dev/boa/blob/main/boa_examples/src/bin/modulehandler.rs. Importing a calling functions without arguments works fine but when I try to call something with arguments I always get the error
To Reproduce
Run the example dev/boa/blob/main/boa_examples/src/bin/modulehandler.rs or use it to run JS-Code that looks something like this:
Expected behavior
I expect the functions to be callable with the appropriate number of arguments.
Build environment (please complete the following information):
The text was updated successfully, but these errors were encountered: