OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 | 777 |
778 ReplaceResultBuilder.prototype.generate = function() { | 778 ReplaceResultBuilder.prototype.generate = function() { |
779 return %StringBuilderConcat(this.elements, this.special_string); | 779 return %StringBuilderConcat(this.elements, this.special_string); |
780 } | 780 } |
781 | 781 |
782 | 782 |
783 // ------------------------------------------------------------------- | 783 // ------------------------------------------------------------------- |
784 | 784 |
785 function SetupString() { | 785 function SetupString() { |
786 // Setup the constructor property on the String prototype object. | 786 // Setup the constructor property on the String prototype object. |
787 %AddProperty($String.prototype, "constructor", $String, DONT_ENUM); | 787 %SetProperty($String.prototype, "constructor", $String, DONT_ENUM); |
788 | 788 |
789 | 789 |
790 // Setup the non-enumerable functions on the String object. | 790 // Setup the non-enumerable functions on the String object. |
791 InstallFunctions($String, DONT_ENUM, $Array( | 791 InstallFunctions($String, DONT_ENUM, $Array( |
792 "fromCharCode", StringFromCharCode | 792 "fromCharCode", StringFromCharCode |
793 )); | 793 )); |
794 | 794 |
795 | 795 |
796 // Setup the non-enumerable functions on the String prototype object. | 796 // Setup the non-enumerable functions on the String prototype object. |
797 InstallFunctions($String.prototype, DONT_ENUM, $Array( | 797 InstallFunctions($String.prototype, DONT_ENUM, $Array( |
(...skipping 27 matching lines...) Expand all Loading... |
825 "italics", StringItalics, | 825 "italics", StringItalics, |
826 "small", StringSmall, | 826 "small", StringSmall, |
827 "strike", StringStrike, | 827 "strike", StringStrike, |
828 "sub", StringSub, | 828 "sub", StringSub, |
829 "sup", StringSup | 829 "sup", StringSup |
830 )); | 830 )); |
831 } | 831 } |
832 | 832 |
833 | 833 |
834 SetupString(); | 834 SetupString(); |
OLD | NEW |