Backed out changeset bd61ede3832f (bug 1777413) for causing SM bustages.
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