Revision: 12429
Author:   [email protected]
Date:     Mon Sep  3 08:05:08 2012
Log:      Use local variable for getter function in Error.stack

[email protected]
BUG=

Review URL: https://chromiumcodereview.appspot.com/10911056
http://code.google.com/p/v8/source/detail?r=12429

Modified:
 /branches/bleeding_edge/src/messages.js

=======================================
--- /branches/bleeding_edge/src/messages.js     Wed Aug 29 00:51:48 2012
+++ /branches/bleeding_edge/src/messages.js     Mon Sep  3 08:05:08 2012
@@ -762,11 +762,12 @@

 // Defines accessors for a property that is calculated the first time
 // the property is read.
-function DefineOneShotAccessor(obj, name, value_factory) {
+function DefineOneShotAccessor(obj, name, fun) {
   // Note that the accessors consistently operate on 'obj', not 'this'.
   // Since the object may occur in someone else's prototype chain we
   // can't rely on 'this' being the same as 'obj'.
   var value;
+  var value_factory = fun;
   var getter = function() {
     if (value_factory == null) {
       return value;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to