Skip to content

Sometimes JS_ErrorFromException returns full source file name not in UTF-8 #229

Description

@dima-lur

JSErrorReport* pReport = JS_ErrorFromException( cx, excnObject );

Sometimes JS_ErrorFromException returns (possibly) the absolute name of the source file, not the value given in JS::CompileOptions.setFileAndLine. And this value is not in UTF-8 or what?

Снимок экрана 2024-03-13 115424

EDITED: Logged pReport->filename bytes:
99 0 0 0 0 0
Probably a Spider Monkey error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions