Commit 5543263c authored by rossberg@chromium.org's avatar rossberg@chromium.org

Move all Harmony-only tests to harmony/

R=jkummerow@chromium.org
BUG=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19622 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 227cac3b
......@@ -27,6 +27,10 @@
// Flags: --harmony-symbols
// Fake Symbol if undefined, allowing test to run in non-Harmony mode as well.
this.Symbol = typeof Symbol != 'undefined' ? Symbol : String;
var desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__");
var getProto = desc.get;
var setProto = desc.set;
......
......@@ -25,7 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --allow-natives-syntax --harmony-proxies --es5_readonly
// Flags: --allow-natives-syntax --es5_readonly
// Flags: --harmony-proxies
// Different ways to create an object.
......@@ -120,8 +121,12 @@ function ReadonlyByProto(o, name) {
o.__proto__ = p;
}
// Allow Proxy to be undefined, so test can run in non-Harmony mode as well.
var global = this;
function ReadonlyByProxy(o, name) {
var p = Proxy.create({
if (!global.Proxy) return ReadonlyByFreeze(o, name); // Dummy.
var p = global.Proxy.create({
getPropertyDescriptor: function() {
return {value: -46, writable: false, configurable: true};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment