Skip to content

Improve Error handling incorrectly implementing Java interface #836

@petekanev

Description

@petekanev

Problem:
Making a call to the interface constructor in JavaScript without prefixing it with the new keyword would abruptly crash the app without a stack trace or an exception message.

let r = java.lang.Runnable({ run: () => { }});

Solution:
Handle incorrect calls to interface constructors and throw a nativescript exception object with the appropriate message.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions