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
{{ message }}
Repository navigation
Error in passing string value to function of type NativeFunctionData #633
This is not a bug, when you call value.to_string() it calls value Display trait which puts quotes around strings. instead use Interperter::to_string(value) after #625 this should be more intuitive. since to display it you have to call Value::display() and to turn the value to a string you call Value::to_string(ctx).
Activity
HalidOdat commentedon Aug 14, 2020
Could you give an example of this?
elasmojs commentedon Aug 14, 2020
I just issued a pull request for #446 (#634) , it has the snippet in modulehandler.rs line 44
hope that helps
HalidOdat commentedon Aug 15, 2020
This is not a bug, when you call
value.to_string()it calls valueDisplaytrait which puts quotes around strings. instead useInterperter::to_string(value)after #625 this should be more intuitive. since to display it you have to callValue::display()and to turn the value to a string you callValue::to_string(ctx).