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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 this.hasEnumerable_ = false; | 397 this.hasEnumerable_ = false; |
398 this.configurable_ = false; | 398 this.configurable_ = false; |
399 this.hasConfigurable_ = false; | 399 this.hasConfigurable_ = false; |
400 this.get_ = void 0; | 400 this.get_ = void 0; |
401 this.hasGetter_ = false; | 401 this.hasGetter_ = false; |
402 this.set_ = void 0; | 402 this.set_ = void 0; |
403 this.hasSetter_ = false; | 403 this.hasSetter_ = false; |
404 } | 404 } |
405 | 405 |
406 PropertyDescriptor.prototype.__proto__ = null; | 406 PropertyDescriptor.prototype.__proto__ = null; |
| 407 |
407 PropertyDescriptor.prototype.toString = function() { | 408 PropertyDescriptor.prototype.toString = function() { |
408 return "[object PropertyDescriptor]"; | 409 return "[object PropertyDescriptor]"; |
409 }; | 410 }; |
410 | 411 |
411 PropertyDescriptor.prototype.setValue = function(value) { | 412 PropertyDescriptor.prototype.setValue = function(value) { |
412 this.value_ = value; | 413 this.value_ = value; |
413 this.hasValue_ = true; | 414 this.hasValue_ = true; |
414 } | 415 } |
415 | 416 |
416 | 417 |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 // ---------------------------------------------------------------------------- | 1302 // ---------------------------------------------------------------------------- |
1302 | 1303 |
1303 function SetupFunction() { | 1304 function SetupFunction() { |
1304 InstallFunctions($Function.prototype, DONT_ENUM, $Array( | 1305 InstallFunctions($Function.prototype, DONT_ENUM, $Array( |
1305 "bind", FunctionBind, | 1306 "bind", FunctionBind, |
1306 "toString", FunctionToString | 1307 "toString", FunctionToString |
1307 )); | 1308 )); |
1308 } | 1309 } |
1309 | 1310 |
1310 SetupFunction(); | 1311 SetupFunction(); |
OLD | NEW |