Backed out changeset a3e646ff4b21 (bug 1777413) for causing jsreftest failures on ArrayBuffer/bug1777413.js.
This commit is contained in:
@@ -1711,8 +1711,8 @@ static bool CreateExternalArrayBuffer(JSContext* cx, unsigned argc, Value* vp) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bytes < 0) {
|
||||
JS_ReportErrorASCII(cx, "Size must be non-negative");
|
||||
if (bytes <= 0) {
|
||||
JS_ReportErrorASCII(cx, "Size must be positive");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user