summaryrefslogtreecommitdiff
path: root/waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch
blob: f82eee574ff16031ddb2337b8f5c37a5dd0ec65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From ad7c6089a18cd8ad66cd97135e3a9dabfccea9b9 Mon Sep 17 00:00:00 2001
From: Phantom X <PhantomX@users.noreply.github.com>
Date: Wed, 9 Mar 2022 17:46:25 -0300
Subject: [PATCH] testStructuredClone.cpp: Remove
 testStructuredClone_invalidLength test

Build failure when debug is disabled
This reverts part of commit 18213329b676e532f56b6042bc0baae1cec1d5d2,
---
 js/src/jsapi-tests/testStructuredClone.cpp | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/js/src/jsapi-tests/testStructuredClone.cpp b/js/src/jsapi-tests/testStructuredClone.cpp
index 1a0fada..a01afcc 100644
--- a/js/src/jsapi-tests/testStructuredClone.cpp
+++ b/js/src/jsapi-tests/testStructuredClone.cpp
@@ -9,22 +9,6 @@
 
 using namespace js;
 
-#ifdef DEBUG
-// Skip test, since it will abort with an assert in buf->Init(7).
-#else
-BEGIN_TEST(testStructuredClone_invalidLength) {
-  auto buf = js::MakeUnique<JSStructuredCloneData>(0, 0, 7);
-  CHECK(buf);
-  CHECK(buf->Init(0, 7));
-  RootedValue clone(cx);
-  CHECK(!JS_ReadStructuredClone(cx, *buf, JS_STRUCTURED_CLONE_VERSION,
-                                JS::StructuredCloneScope::DifferentProcess,
-                                &clone, nullptr, nullptr));
-  return true;
-}
-END_TEST(testStructuredClone_invalidLength)
-#endif
-
 BEGIN_TEST(testStructuredClone_object)
 {
     JS::RootedObject g1(cx, createGlobal());
-- 
2.35.1

bgstack15