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

Unified Diff: test/mjsunit/messages.js

Issue 2692753002: Fix error message for invalid buffer offset (Closed)
Patch Set: Add test Created 3 years, 10 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/messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/messages.js
diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js
index 30abc197e9b941bc80a038633409af23a1996dcb..6d707ed1c1778c6d2d0be2835cdb8ba9a95907ba 100644
--- a/test/mjsunit/messages.js
+++ b/test/mjsunit/messages.js
@@ -389,6 +389,11 @@ test(function() {
// === RangeError ===
+// kInvalidOffset
+test(function() {
+ new Uint8Array(new ArrayBuffer(1),2);
+}, "Start offset 2 is outside the bounds of the buffer", RangeError);
+
// kArrayLengthOutOfRange
test(function() {
"use strict";
« no previous file with comments | « src/messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698