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

Unified Diff: test/mjsunit/array-slice.js

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments (and rebased) Created 8 years, 1 month 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 | « test/mjsunit/array-natives-elements.js ('k') | test/mjsunit/elements-kind.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-slice.js
diff --git a/test/mjsunit/array-slice.js b/test/mjsunit/array-slice.js
index 5ae31dc5278ec4c90a4166f91030874c8c06663c..ae0e3bc1ef6fb4793866ce490d951952c0198097 100644
--- a/test/mjsunit/array-slice.js
+++ b/test/mjsunit/array-slice.js
@@ -290,3 +290,15 @@
func('a', 'b', 'c');
})();
+
+// Check slicing of holey objects with elements in the prototype
+(function() {
+ function f() {
+ delete arguments[1];
+ arguments.__proto__[1] = 5;
+ var result = Array.prototype.slice.call(arguments);
+ delete arguments.__proto__[1];
+ assertEquals([1,5,3], result);
+ }
+ f(1,2,3);
+})();
« no previous file with comments | « test/mjsunit/array-natives-elements.js ('k') | test/mjsunit/elements-kind.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698