Skip to content

[cppia] Crashes when executing callables #1321

@tobil4sk

Description

@tobil4sk

I have a pending PR to enable thread and eventloop tests for cppia: HaxeFoundation/haxe#12820

By reverting back to these commits before the callable rework, both of them run fine:
HaxeFoundation/haxe@add3235
14133db

However, the next commits after those break both tests:
HaxeFoundation/haxe@e4c2369
a20c1cc

Threads:

$ haxe --main Main --dce full --cppia bin/threads.cppia
$ haxelib run hxcpp bin/threads.cppia
Running cases.TestEvents...
    testRun
    testRepeat
    testIssue10567_runEventsInOrderByTime
Running cases.TestTimer...
    testCorrectInterval
terminate called after throwing an instance of 'Dynamic'

eventLoop:

$ haxe --main Main --dce full --cppia bin/Main.cppia
$ haxelib run hxcpp bin/Main.cppia                  
Main.hx:7: 0
terminate called after throwing an instance of 'Dynamic'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions