-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix#27796 Added condition and test case for the getData parameter input functionality #27843
Fix#27796 Added condition and test case for the getData parameter input functionality #27843
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Thanks for taking up this task! Please look at the comment :)
src/bindings/js/node/src/tensor.cpp
Outdated
Napi::Env env = info.Env(); | ||
if (info.Length() > 0) { | ||
reportError(env, "getData() does not accept any arguments."); | ||
return env.Undefind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return env.Undefind | |
return env.Undefined(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @almilosz, thank you for pointing out the issue. Sorry, I forgot to push the commit. Doing the push right now. Can you please review it.
src/bindings/js/node/src/tensor.cpp
Outdated
Napi::Env env = info.Env(); | ||
if (info.Length() > 0) { | ||
reportError(env, "getData() does not accept any arguments."); | ||
return env.Undefined() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return env.Undefined() | |
return env.Undefined(); |
there is a semicolon missing ;) I recommend checking git status
carefully, building the project and running tests before pushing changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done @almilosz
build_jenkins |
…ut functionality (openvinotoolkit#27843) This fixes openvinotoolkit#27796 Implemented the exception for the passing parameter scenario for getData function - Added condition to check if parameters are passed or not - Added tests in Tensor.test.js
This fixes #27796
Implemented the exception for the passing parameter scenario for getData function