Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeJS Loader could not convert the value of type 'Invalid' to N-API #516

Open
Mostafa-wael opened this issue Jul 18, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Mostafa-wael
Copy link

🐛 Bug Report

I got an error while using the string manipulation example.

Expected Behavior

It should output: NodeJS Loader could not convert the value of type 'Invalid' to N-API

Current Behavior

I got: [null,0]

Steps to Reproduce

  1. metacall load rb examples/string-manipulation/str.rb
  2. call longest_repetition("")

Context (Environment)

Windows10

@Mostafa-wael Mostafa-wael added the bug Something isn't working label Jul 18, 2024
@viferga
Copy link
Member

viferga commented Jul 22, 2024

@Mostafa-wael can you link or paste this code? examples/string-manipulation/str.rb

@Mostafa-wael
Copy link
Author

You can find the code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants