godotjs / godotjs/javascript

@onready raise Error

Open
#64 7 comments 0 reactions 0 assignees View on GitHub
investigation
Dominant language
C++
Stars
1.1k
Forks
80
PR merge metrics
No merged PRs in 30d

Description

The code is:
```
@onready("..")
parent: godot.Node;
```
and some errors were printed in console:
```
ERROR: object_method: Parameter "bind" is null. At: modules/ECMAScript/quickjs/quickjs_binder.cpp:146
ERROR: object_method: Parameter "bind" is null. At: modules/ECMAScript/quickjs/quickjs_binder.cpp:146
ERROR: object_method: Parameter "bind" is null. At: modules/ECMAScript/quickjs/quickjs_binder.cpp:146
```
What's wrong?

Contributor guide

Open the contributing guide

Research direction

Reproduce the @onready("..") declaration with parent: godot.Node and start at modules/ECMAScript/quickjs/quickjs_binder.cpp:146, where the reported null-bind errors originate. Trace how the annotation and Node reference reach the QuickJS binder, then verify the behavior with a minimal Godot scene and establish whether the declaration is supported or needs different syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript, typescript
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.