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

Unified Diff: test/mjsunit/mjsunit.js

Issue 2760313002: [tests] PrettyPrint for TypedArrays (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/mjsunit.js
diff --git a/test/mjsunit/mjsunit.js b/test/mjsunit/mjsunit.js
index 328195f22409f38320d74d302109de46f0704afe..2e8d481218283fc9111e090709794de26f9489c6 100644
--- a/test/mjsunit/mjsunit.js
+++ b/test/mjsunit/mjsunit.js
@@ -215,6 +215,16 @@ var failWithMessage;
var mapped = ArrayPrototypeMap.call(value, PrettyPrintArrayElement);
var joined = ArrayPrototypeJoin.call(mapped, ",");
return "[" + joined + "]";
+ case "Uint8Array":
+ case "Int8Array":
+ case "Int16Array":
+ case "Uint16Array":
+ case "Uint32Array":
+ case "Int32Array":
+ case "Float32Array":
+ case "Float64Array":
+ var joined = ArrayPrototypeJoin.call(value, ",");
+ return objectClass + "([" + joined + "])";
case "Object":
break;
default:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698