Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20418] Hyperloop: Expose ObjC-macros in Javascript

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-03-24T12:57:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsHyperloop
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-02-17T12:50:43.000+0000
Updated2016-07-21T23:27:36.000+0000

Description

A lot of important type validations during both SDK- and module-development are currently realized by using macros we provide. These are for example: - ENSURE_TYPE(): Validate arguments to be from a specific type - ENSURE_SINGLE_ARG_OR_NIL(): Validates the argument length or provides a fallback - NUMINT/NUMFLOAT/NUMBOOL: Converts native types to proxy-readable NSNumbers - DEPRECATED_REPLACE: Logs a warning for deprecated API's, commonly used inside the SDK - RELEASE_TO_NIL: Does the common cleanup of allocated objects The proposal would be, to bridge those macros into Javascript-methods that are pre-processed and available without any requirement, or be part of the bridged TiUtils which is discussed in TIMOB-20417.

Comments

  1. Hans Knöchel 2016-03-24

    Closing this ticket since the changes will be part of TIMOB-20417

JSON Source