Skip to content

Conversation

@eagleoflqj
Copy link
Contributor

I'm in the middle of porting libskk with glib, and encountered a SyntaxError: Unexpected token '*'.
Given the value of cSig, jsArg and jsArgs in debugger view, it seems straightforward.

@eagleoflqj eagleoflqj force-pushed the dylink branch 2 times, most recently from bf6c07d to c113518 Compare November 8, 2025 20:10
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks right.

I believe the test for it is other.test_em_js_side_module, runnable with

./test/runner other.test_em_js_side_module

Please add a ** pointer there, to test this.

@eagleoflqj eagleoflqj requested a review from kripken November 11, 2025 14:02
@sbc100 sbc100 changed the title fix addEmJs when parameter is indirect pointer [dylink] Fix addEmJs when parameter is indirect pointer Nov 11, 2025
js_side_func(42, "hello");
js_side_func2("hello again");
js_side_func_void();
js_side_func_indirect_ptr(NULL);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you pass &"hello" and then print the string js_side_func_indirect_ptr?

otherwise lgtm

@kripken
Copy link
Member

kripken commented Nov 11, 2025

Also see the failing test, an expectation needs to be updated. See instructions for that in the CI error.

@sbc100
Copy link
Collaborator

sbc100 commented Nov 11, 2025

Also see the failing test, an expectation needs to be updated. See instructions for that in the CI error.

I think just rebase should fix that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants