When I am using iot.js NAPI, the NAPI treat error as object, but in jerryscript,
error is not an object but a error reference to object. That's inconsistence with n-api and
getting iot.js napi doesn't support for external errors.
Question, why ecma_create_error_reference are needed, as error are also an object.
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Question, why ecma_create_error_reference are needed, as error are also an object.
Issue date:

--- start body ---
When I am using iot.js NAPI, the NAPI treat error as object, but in jerryscript,
error is not an object but a error reference to object. That's inconsistence with n-api and
getting iot.js napi doesn't support for external errors.
--- end body ---
