v8/test/mjsunit/harmony/regress
adamk@chromium.org 71fbe7d4ec Ensure that JSProxy::Fix gives the generated JSObject map a constructor
All JSObjects in V8 either have a map()->constructor() field or are
JSFunctions. JSProxy::Fix, however, was not enforcing this, and
Object.observe's use of JSObject::GetCreationContext() exposed this.

Note that this is not Object.observe-specific: the API call
v8::Object::CreationContext() also would have revealed this bug.

This patch chooses Object as a reasonable constructor to put on the
newly-fixed object's map. Note that this has no effect on the "constructor"
property in JS. In doing so, I've also tightened up the code underlying
JSProxy::Fix to only support JSObject and JSFunction as possible output
types.

BUG=405844
LOG=N
R=rossberg@chromium.org, verwaest@chromium.org

Review URL: https://codereview.chromium.org/505303004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23466 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-08-27 15:54:23 +00:00
..
regress-2219.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-2225.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-2243.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-2322.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-3426.js Fix several issues with ES6 redeclaration checks 2014-07-09 11:35:05 +00:00
regress-173361.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-343928.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-405844.js Ensure that JSProxy::Fix gives the generated JSObject map a constructor 2014-08-27 15:54:23 +00:00
regress-crbug-347528.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-lookup-transition.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-observe-empty-double-array.js Re^3-land "Ship promises and weak collections" 2014-05-06 14:48:34 +00:00