FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: replace use of removed `GetPrototypeV2` API · nodejs/node-v8@9b58720 · GitHub

/ node-v8 Public

Commit 9b58720

Browse files
authored andcommitted
test: replace use of removed GetPrototypeV2 API
Signed-Off-By: Michaël Zasso <targos@protonmail.com>
1 parent e2df1f8 commit 9b58720

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/cctest/test_node_ipc_serdes.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ TEST_F(IPCSerdesTest, RoundTripsTypedArray) {
175175
// A plain Uint8Array must not come back as a Node Buffer.
176176
Environment* env = *test_env;
177177
EXPECT_FALSE(
178-
out->GetPrototypeV2()->StrictEquals(env->buffer_prototype_object()));
178+
out->GetPrototype()->StrictEquals(env->buffer_prototype_object()));
179179
}
180180

181181
TEST_F(IPCSerdesTest, BufferRoundTripsAsBuffer) {
@@ -202,7 +202,7 @@ TEST_F(IPCSerdesTest, BufferRoundTripsAsBuffer) {
202202
// plain Uint8Array.
203203
Environment* env = *test_env;
204204
EXPECT_TRUE(
205-
out->GetPrototypeV2()->StrictEquals(env->buffer_prototype_object()));
205+
out->GetPrototype()->StrictEquals(env->buffer_prototype_object()));
206206
EXPECT_EQ(node::Buffer::Length(out), static_cast<size_t>(6));
207207
EXPECT_EQ(memcmp(node::Buffer::Data(out), "Hello!", 6), 0);
208208
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL