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

Unified Diff: src/js/array.js

Issue 2810363003: [builtins] Introduce DeleteProperty builtin (Closed)
Patch Set: fix CallableFor not to create handles Created 3 years, 8 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/interpreter/interpreter-generator.cc ('k') | src/property-details.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/array.js
diff --git a/src/js/array.js b/src/js/array.js
index 548b8b74fd3056fcbcb43feaf652d1fb37e0f39b..ddcc0e3150e89e590e8798971a8af8dc56ef8d5c 100644
--- a/src/js/array.js
+++ b/src/js/array.js
@@ -402,7 +402,7 @@ function ArrayPop() {
n--;
var value = array[n];
- %DeleteProperty_Strict(array, n);
+ delete array[n];
array.length = n;
return value;
}
« no previous file with comments | « src/interpreter/interpreter-generator.cc ('k') | src/property-details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698