Backed out changeset bd61ede3832f (bug 1777413) for causing SM bustages.

This commit is contained in:
Cosmin Sabou
2022-06-30 22:00:54 +03:00
parent dc7d9e99d9
commit 630c388273
3 changed files with 3 additions and 8 deletions

View File

@@ -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;
}