| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 this.hasEnumerable_ = false; | 448 this.hasEnumerable_ = false; |
| 449 this.configurable_ = false; | 449 this.configurable_ = false; |
| 450 this.hasConfigurable_ = false; | 450 this.hasConfigurable_ = false; |
| 451 this.get_ = void 0; | 451 this.get_ = void 0; |
| 452 this.hasGetter_ = false; | 452 this.hasGetter_ = false; |
| 453 this.set_ = void 0; | 453 this.set_ = void 0; |
| 454 this.hasSetter_ = false; | 454 this.hasSetter_ = false; |
| 455 } | 455 } |
| 456 | 456 |
| 457 PropertyDescriptor.prototype.__proto__ = null; | 457 PropertyDescriptor.prototype.__proto__ = null; |
| 458 |
| 458 PropertyDescriptor.prototype.toString = function() { | 459 PropertyDescriptor.prototype.toString = function() { |
| 459 return "[object PropertyDescriptor]"; | 460 return "[object PropertyDescriptor]"; |
| 460 }; | 461 }; |
| 461 | 462 |
| 462 PropertyDescriptor.prototype.setValue = function(value) { | 463 PropertyDescriptor.prototype.setValue = function(value) { |
| 463 this.value_ = value; | 464 this.value_ = value; |
| 464 this.hasValue_ = true; | 465 this.hasValue_ = true; |
| 465 } | 466 } |
| 466 | 467 |
| 467 | 468 |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 // ---------------------------------------------------------------------------- | 1522 // ---------------------------------------------------------------------------- |
| 1522 | 1523 |
| 1523 function SetupFunction() { | 1524 function SetupFunction() { |
| 1524 InstallFunctions($Function.prototype, DONT_ENUM, $Array( | 1525 InstallFunctions($Function.prototype, DONT_ENUM, $Array( |
| 1525 "bind", FunctionBind, | 1526 "bind", FunctionBind, |
| 1526 "toString", FunctionToString | 1527 "toString", FunctionToString |
| 1527 )); | 1528 )); |
| 1528 } | 1529 } |
| 1529 | 1530 |
| 1530 SetupFunction(); | 1531 SetupFunction(); |
| OLD | NEW |