emul/src/main/resources/org/apidesign/vm4brwsr/emul/java_lang_String.js
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 09 Dec 2012 16:44:27 +0100
branchexceptions
changeset 292 fc3f6ea5e246
parent 250 42c2ceb1e160
child 274 81f6e7778135
permissions -rw-r--r--
Need the ability to cast to any type to successfully run tests on VM with exceptions support
     1 // initialize methods on String constants
     2 java_lang_String(false);
     3 
     4 // we need initialized arrays
     5 Array.prototype.fillNulls = function() {
     6   for(var i = 0; i < this.length; i++) this[i] = null;
     7   return this;
     8 };
     9