Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1360)

Unified Diff: test/mjsunit/regress/regress-array-pop-nonconfigurable.js

Issue 43923002: Reland "Make Array.prototype.pop throw if the last element is not configurable." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/array.js ('k') | tools/presubmit.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-array-pop-nonconfigurable.js
diff --git a/test/mjsunit/regress/regress-173361.js b/test/mjsunit/regress/regress-array-pop-nonconfigurable.js
similarity index 95%
copy from test/mjsunit/regress/regress-173361.js
copy to test/mjsunit/regress/regress-array-pop-nonconfigurable.js
index f9cfb6684c0d52996c7ceac8412defbaf48a5eeb..129e1980a446bee71e99a04076f46d1cd4d00b5c 100644
--- a/test/mjsunit/regress/regress-173361.js
+++ b/test/mjsunit/regress/regress-array-pop-nonconfigurable.js
@@ -25,9 +25,7 @@
// (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: --harmony
+var a = [];
+Object.defineProperty(a, 0, {});
+assertThrows(function() { a.pop(); });
-const x = 7;
-
-function f() { const y = 8; }
-f();
« no previous file with comments | « src/array.js ('k') | tools/presubmit.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698