vm: don't copy Proxy object from parent context
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 30 Jan 2014 12:21:07 +0000 (13:21 +0100)
committerFedor Indutny <fedor.indutny@gmail.com>
Thu, 6 Feb 2014 11:30:38 +0000 (15:30 +0400)
commitbbd56d881db20e84fd6d43e6ba750230692c5871
tree2100eab32b5e84b50e6ab2624c2b34eb36531119
parent2b6e078833bf4c485f725a8c5633a3202e31868c
vm: don't copy Proxy object from parent context

Make vm.runInContext() and vm.runInNewContext() stop copying the Proxy
object from the parent context into the new context when --harmony or
--harmony_proxies is in effect because it overwrites the new context's
native Proxy object.

This commit also adds a regression test for Harmony symbols.  They work
okay in the current implementation and the test should ensure it stays
that way.
src/node_contextify.cc
test/common.js
test/simple/test-vm-harmony-proxies.js [new file with mode: 0644]
test/simple/test-vm-harmony-symbols.js [new file with mode: 0644]