Allow global functions to specify whether or not they care about their `this` binding
Open
0 - Backlog
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Some GML functions use the value of `self` to do stuff. (e.g. `instance_destroy`) Many, however, do not care about the value of `self` (e.g. math functions)
To pass the `self` value, the compiler is generating code that calls all functions with `.call(this, ...`. This should only happen when the function being called makes use of the `this` binding. All other times, the function should be called more normally: `thisIsAGlobalFunction(arg1, arg2);`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.