summaryrefslogtreecommitdiff
path: root/waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch
diff options
context:
space:
mode:
Diffstat (limited to 'waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch')
-rw-r--r--waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch10
1 files changed, 4 insertions, 6 deletions
diff --git a/waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch b/waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch
index 75ec736..f82eee5 100644
--- a/waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch
+++ b/waterfox/0001-testStructuredClone.cpp-Remove-testStructuredClone_i.patch
@@ -14,7 +14,7 @@ diff --git a/js/src/jsapi-tests/testStructuredClone.cpp b/js/src/jsapi-tests/tes
index 1a0fada..a01afcc 100644
--- a/js/src/jsapi-tests/testStructuredClone.cpp
+++ b/js/src/jsapi-tests/testStructuredClone.cpp
-@@ -9,24 +9,6 @@
+@@ -9,22 +9,6 @@
using namespace js;
@@ -22,15 +22,13 @@ index 1a0fada..a01afcc 100644
-// Skip test, since it will abort with an assert in buf->Init(7).
-#else
-BEGIN_TEST(testStructuredClone_invalidLength) {
-- auto buf = js::MakeUnique<JSStructuredCloneData>(
-- JS::StructuredCloneScope::DifferentProcess);
+- auto buf = js::MakeUnique<JSStructuredCloneData>(0, 0, 7);
- CHECK(buf);
-- CHECK(buf->Init(7));
+- CHECK(buf->Init(0, 7));
- RootedValue clone(cx);
-- JS::CloneDataPolicy policy;
- CHECK(!JS_ReadStructuredClone(cx, *buf, JS_STRUCTURED_CLONE_VERSION,
- JS::StructuredCloneScope::DifferentProcess,
-- &clone, policy, nullptr, nullptr));
+- &clone, nullptr, nullptr));
- return true;
-}
-END_TEST(testStructuredClone_invalidLength)
bgstack15