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

Bug: $isValidObject returns nothing #579

Closed
1 task done
ddodogames opened this issue Apr 16, 2024 · 2 comments
Closed
1 task done

Bug: $isValidObject returns nothing #579

ddodogames opened this issue Apr 16, 2024 · 2 comments
Assignees
Labels
aoi.js this issue/Pr is related to aoi.js state: approved Issue/Pull Request was approved type: bug Something causing unexpected behaviour type: function functions related

Comments

@ddodogames
Copy link

ddodogames commented Apr 16, 2024

Bug Type

Function

Bugged Function

{
    name: "object-check",
    code: `Result for api: $isValidObject[$get[jsonresponse]]
Result for normal object: $isValidObject[{"name":"Leref", "aoijs":"nice"}]
Tested on: $packageVersion
$let[jsonresponse;$jsonRequest[https://api.popcat.xyz/wyr]]`
}

Version of aoi.js

v6.7.1

Version of Node.js

v20.12.2

Excepted Output

$isValidObject by it's name checks on if a specified object is actually a object or not. In the example code for testing the bug, it returns nothing however rather than either true or false. This was tested on both 6.7.1 and the github version (6.8.0 at the time).

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ddodogames
Copy link
Author

had to slightly edit the example and node version, was a mistake on my end since i forgot to change some stuff

@USERSATOSHI USERSATOSHI added type: bug Something causing unexpected behaviour state: approved Issue/Pull Request was approved type: function functions related aoi.js this issue/Pr is related to aoi.js labels Apr 17, 2024
@USERSATOSHI
Copy link
Member

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aoi.js this issue/Pr is related to aoi.js state: approved Issue/Pull Request was approved type: bug Something causing unexpected behaviour type: function functions related
Projects
None yet
Development

No branches or pull requests

3 participants