This implements unscopables
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 6 Aug 2014 15:50:40 +0000 (15:50 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 6 Aug 2014 15:50:40 +0000 (15:50 +0000)
commit25b978cbf422115a1b2f62113631931b64d6274d
tree23537e23edacfa6a69357e272fae284a30ec5a4a
parenta1ee057ff7e4161f896ba269e801ee717d4345c5
This implements unscopables

The unscobables allow us to black list properties from showing up in
with statements.

https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-environment-records-hasbinding-n

The spec draft is not fully up to date.

https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-07/jul-29.md#conclusionresolution

BUG=v8:3401
LOG=Y
R=rossberg@chromium.org, verwaest@chromium.org

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

Patch from Erik Arvidsson <arv@chromium.org>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22942 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
13 files changed:
BUILD.gn
src/bootstrapper.cc
src/contexts.cc
src/contexts.h
src/flag-definitions.h
src/symbol.js
src/unscopables.js [new file with mode: 0644]
test/cctest/cctest.gyp
test/cctest/test-unscopables-hidden-prototype.cc [new file with mode: 0644]
test/mjsunit/harmony/proxies-with-unscopables.js [new file with mode: 0644]
test/mjsunit/harmony/unscopables.js [new file with mode: 0644]
tools/generate-runtime-tests.py
tools/gyp/v8.gyp