1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8_5/regress/regress-596805-2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* 1.6 + * Any copyright is dedicated to the Public Domain. 1.7 + * http://creativecommons.org/licenses/publicdomain/ 1.8 + */ 1.9 + 1.10 +for each(let c in [0, 0, 0, 0, 0]) { 1.11 + try { (function() { 1.12 + this.c = this; 1.13 + this.e = arguments; 1.14 + Object.defineProperty(this, "d", { 1.15 + get: Math.pow, 1.16 + configurable: true 1.17 + }); 1.18 + delete this.e; 1.19 + delete this.c; 1.20 + Object.defineProperty(this, "d", { 1.21 + writable: true 1.22 + }); 1.23 + if (Math.tan( - 1)) { 1.24 + Object.defineProperty(this, {}); 1.25 + } 1.26 + } (c)); 1.27 + } catch(e) {} 1.28 +} 1.29 + 1.30 +reportCompare(0, 0, "ok");