Revision: 4679 http://sourceforge.net/p/vexi/code/4679 Author: mkpg2 Date: 2014-03-20 22:21:53 +0000 (Thu, 20 Mar 2014) Log Message: ----------- Change. Make array not throw an exception when accessing a non-array property. - inconvenient when duck typing ... i.e. if(value?.property) ...
Modified Paths: -------------- branches/vexi3/org.vexi-library.js/src/main/jpp/org/ibex/js/JSArray.jpp Modified: branches/vexi3/org.vexi-library.js/src/main/jpp/org/ibex/js/JSArray.jpp =================================================================== --- branches/vexi3/org.vexi-library.js/src/main/jpp/org/ibex/js/JSArray.jpp 2014-03-17 18:53:59 UTC (rev 4678) +++ branches/vexi3/org.vexi-library.js/src/main/jpp/org/ibex/js/JSArray.jpp 2014-03-20 22:21:53 UTC (rev 4679) @@ -161,9 +161,7 @@ case "unshift": return METHOD; //#end - // MAYbe better to return null - // return null; - throw new JSExn("Attempt to get unrecognized string key '"+JSU.toString(key)+"' from an array"); + return null; } int i = JSU.toInt(key); if (i < 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn