Skip to content

[BUG] Variables inside function that are arguments give an error? #237

@T5mpler

Description

@T5mpler

When you're calling a function, and one of the arguments is a function that contains a variable in it. From my understanding you get an error that it doesn't exist.

Image

I tried heavily debugging it, and even though the local variable DOES exist, it still passes this error?

This is example code I wrote to produce the issue.

Image

This also gives an error

Image

I also used a stack trace to see where it's coming from and it seems to be coming from PolymodScriptClass (stack trace is top -> bottom)

Image

Anyone know why this could be happening?

I happen to be using an hscript fork that provides the same commits from FunkinCrew/hscript, but that just adds some additional functionaility such as string interpolation & typedefs, etc. the fork didn't seem to be the issue, and when I tried using the hscript from FunkinCrew it still re-produced the issue. Not sure what's happening here though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions