Skip to content

[Bug]: QuickJS To Juce conversion : integer are forced to float64 #1513

@benkuper

Description

@benkuper

Detailed steps on how to reproduce the bug

When calling a function from QuickJS engine to C++, the quickJSToJuce function just check that it's a number and casts it to a float64, losing the integer information (which is crucial when for instance sending OSC messages afterwards and needing to keep the value type all the way).

What is the expected behaviour?

Better check on the type of the JSValue when converting and keeping as much as possible the original type throughout the chain

Operating systems

Windows, macOS, Linux

What versions of the operating systems?

All of them

Architectures

x86_64, Arm64/aarch64

Stacktrace

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct

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