Tighten up Object.observe code to ASSERT that it never deals with globals
authoradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 5 May 2014 21:44:36 +0000 (21:44 +0000)
committeradamk@chromium.org <adamk@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 5 May 2014 21:44:36 +0000 (21:44 +0000)
commit9c52caa86eb414603c3fec0c09b6a38836a5b0cb
tree4cb9e38bcf1b74414b70d451f52616f21f35bddb
parent3274485c507bd9c73e3cfe94fb00f9ce5325c7e7
Tighten up Object.observe code to ASSERT that it never deals with globals

After r21126, Object.observe no longer allows observing the global proxy
object. This patch replaces codepaths that used to handle that case with
asserts showing that no such observation happens.

R=verwaest@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21151 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects.cc
src/runtime.cc