Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16691] Windows Hybrid: Add error checking when trying to set an invalid property

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-03-25T05:28:36.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 06, 2014 Sprint 06 Tooling, Release 3.3.0
ComponentsWindows Hybrid
Labelsmodule_hybrid, qe-testadded
ReporterChris Barber
AssigneeChris Barber
Created2014-03-25T05:25:27.000+0000
Updated2014-05-20T20:01:23.000+0000

Description

When trying to get an invalid property using the reflection api, Windows Hybrid needs to throw an exception.
var currentFolder = tiwp8.staticProperty('Windows.ApplicationModel.Package', 'Current');

var installFolder = currentFolder.property('InstalledLocation'); // works
var foo = currentFolder.property('foo'); // throws an error

Comments

  1. Chris Barber 2014-03-25

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5517 3_2_X_hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5518
  2. Samuel Dowse 2014-05-15

    Verified fixed on: Windows 8.1 Appcelerator Studio, build: 3.3.0.201405121247 Titanium SDK, build: 3.3.0.v20140514121712 Titanium CLI, build: 3.3.0-dev Windows SDK: 8.0 Nokia Lumia 520: 8.0 Using the test code provided, the application throws an error as expected. Closing

JSON Source