Chromium Code Reviews| Index: src/v8natives.js |
| diff --git a/src/v8natives.js b/src/v8natives.js |
| index 6173352d0307c1e43cd4a3ccc5013681ca9a0457..4a2467da4c474d9f5bb7c03fe70f46bb1778d584 100644 |
| --- a/src/v8natives.js |
| +++ b/src/v8natives.js |
| @@ -1051,11 +1051,9 @@ function ProxyFix(obj) { |
| // We just put in some half-reasonable defaults for now. |
| var prototype = new $Object(); |
| $Object.defineProperty(prototype, "constructor", |
| - {value: obj, writable: true, enumerable: false, configrable: true}); |
| - $Object.defineProperty(obj, "prototype", |
| - {value: prototype, writable: true, enumerable: false, configrable: false}) |
| - $Object.defineProperty(obj, "length", |
| - {value: 0, writable: true, enumerable: false, configrable: false}); |
| + {value: obj, writable: true, enumerable: false, configurable: true}); |
| + %FunctionSetPrototype(obj, prototype); |
| + obj.length = 0; |
|
Michael Starzinger
2011/11/10 14:20:00
I'm fine with this hack for now. But can you pleas
rossberg
2011/11/10 15:20:23
There is a bug already, see:
http://code.google.c
|
| } else { |
| %Fix(obj); |
| } |