v8/test
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
..
base-unittests Add Flags<T> class as a type-safe way of storing OR-combinations of enums. 2014-08-27 12:16:36 +00:00
benchmarks Fix predictable mode to make time pass faster. 2014-08-12 17:54:41 +00:00
cctest Disable some changes tests on ARM64. Also, fix the changes lowering to not use the more expensive TruncateFloat64ToInt32, but to use ChangeFloat64ToInt32/ChangeFloat64ToUint32, as it was before. 2014-08-27 13:49:30 +00:00
compiler-unittests Fix expectations of lowering tests. 2014-08-27 14:47:50 +00:00
fuzz-natives Land the Fan (disabled) 2014-07-30 13:54:45 +00:00
heap-unittests Fix Win64 build after r23316. 2014-08-22 14:12:47 +00:00
intl Enable test cases that no longer timeout. 2014-08-26 08:44:25 +00:00
message Enable access check tests that no longer fail with TF. 2014-08-14 13:24:57 +00:00
mjsunit Ensure that JSProxy::Fix gives the generated JSObject map a constructor 2014-08-27 15:54:23 +00:00
mozilla Partial revert of r23415. Original message: 2014-08-26 18:30:01 +00:00
preparser ES6: Duplicate properties are no longer an error 2014-08-20 14:25:48 +00:00
promises-aplus Enable access check tests that no longer fail with TF. 2014-08-14 13:24:57 +00:00
runtime-unittests Fix parsing of --gtest_list_tests output. 2014-08-21 12:36:00 +00:00
test262 Enable test cases that no longer timeout. 2014-08-26 08:44:25 +00:00
test262-es6 Enable test cases that no longer timeout. 2014-08-26 08:44:25 +00:00
webkit Add back the duplicate property checker 2014-08-21 15:32:22 +00:00