Skip to content

Allow to get stack trace when rethrowing NSErrors to JavaScript #433

@jasssonpet

Description

@jasssonpet
var fileManager = NSFileManager.defaultManager();
fileManager.contentsOfDirectoryAtPathError('/not-existing-path');

global.__onUncaughtError = function (error) {
    console.log(error.stack); // undefined
};

Providing the native stack trace would also be helpful, if possible.

Maybe we could throw a JS Error with nativeException property, like the Android does.

This is requested by our analytics services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions