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

Unified Diff: src/array.js

Issue 29513004: Make Array.prototype.pop throw if the last element is not configurable. (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: remove some unnecessary effect. 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 | « no previous file | tools/presubmit.py » ('j') | tools/presubmit.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array.js
diff --git a/src/array.js b/src/array.js
index 4a7aea5e1d9fd358cd679ae0f534e8d6bed1f257..b8f50829c93f98790188c1b72f81bd26534967c0 100644
--- a/src/array.js
+++ b/src/array.js
@@ -430,7 +430,7 @@ function ArrayPop() {
n--;
var value = this[n];
- delete this[n];
+ Delete(this, ToName(n), true);
this.length = n;
return value;
}
« no previous file with comments | « no previous file | tools/presubmit.py » ('j') | tools/presubmit.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698