2020-03-03 21:35:05 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Samuel Attard <samuel.r.attard@gmail.com>
|
|
|
|
Date: Thu, 13 Feb 2020 10:34:31 -0800
|
|
|
|
Subject: Avoid calling deprecated method
|
|
|
|
|
|
|
|
The {SetExpectInlineWasm} method is deprecated and non-functional since
|
|
|
|
V8 v8.1.
|
2020-05-07 05:47:58 +00:00
|
|
|
|
|
|
|
This is already present in Node.js v14 and can be removed when we upgrade.
|
2020-03-03 21:35:05 +00:00
|
|
|
|
|
|
|
diff --git a/src/node_serdes.cc b/src/node_serdes.cc
|
2020-06-17 22:57:12 +00:00
|
|
|
index bcdcd19b261e8815e3c0c0f150f2eda72ef47cf5..86fb822dd5bfa9da7767418e6c6f206f8e96ca73 100644
|
2020-03-03 21:35:05 +00:00
|
|
|
--- a/src/node_serdes.cc
|
|
|
|
+++ b/src/node_serdes.cc
|
|
|
|
@@ -286,7 +286,6 @@ DeserializerContext::DeserializerContext(Environment* env,
|
|
|
|
length_(Buffer::Length(buffer)),
|
|
|
|
deserializer_(env->isolate(), data_, length_, this) {
|
|
|
|
object()->Set(env->context(), env->buffer_string(), buffer).Check();
|
|
|
|
- deserializer_.SetExpectInlineWasm(true);
|
|
|
|
|
|
|
|
MakeWeak();
|
|
|
|
}
|