Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: src/v8natives.js

Issue 8506020: Fixing test cases for correct assertSame. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/harmony/proxies-function.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | test/mjsunit/harmony/proxies-function.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698