diff --git a/examples/pxScene2d/external/node-v10.15.3_mods.patch b/examples/pxScene2d/external/node-v10.15.3_mods.patch index 530f19a235..571901a855 100644 --- a/examples/pxScene2d/external/node-v10.15.3_mods.patch +++ b/examples/pxScene2d/external/node-v10.15.3_mods.patch @@ -1602,3 +1602,47 @@ index 3cbeae6d6..67bf832a0 100755 #ifdef _WIN32 static void SetSimultaneousAccepts( +diff --git a/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/builtins/builtins-function.cc b/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/builtins/builtins-function.cc +index df1dc19..d7d5bbf 100755 +--- a/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/builtins/builtins-function.cc ++++ b/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/builtins/builtins-function.cc +@@ -12,6 +12,12 @@ + #include "src/objects-inl.h" + #include "src/objects/api-callbacks.h" + #include "src/string-builder.h" ++/* MODIFIED CODE BEGIN */ ++#include "src/api.h" ++#include "src/handles.h" ++ ++using Utils = v8::Utils; ++/* MODIFIED CODE END */ + + namespace v8 { + namespace internal { +@@ -35,6 +41,10 @@ MaybeHandle CreateDynamicFunction(Isolate* isolate, + } + + // Build the source string. ++/* MODIFIED CODE BEGIN */ ++ v8::Local callingCtx = reinterpret_cast(isolate)->GetCallingContext(); ++ Handle callingCtxHandle = Utils::OpenHandle(*callingCtx); ++/* MODIFIED CODE END */ + Handle source; + int parameters_end_pos = kNoSourcePosition; + { +@@ -103,12 +113,14 @@ MaybeHandle CreateDynamicFunction(Isolate* isolate, + // come from here. + Handle function; + { ++/* MODIFIED CODE BEGIN */ + ASSIGN_RETURN_ON_EXCEPTION( + isolate, function, + Compiler::GetFunctionFromString( +- handle(target->native_context(), isolate), source, ++ handle(*callingCtxHandle, isolate), source, + ONLY_SINGLE_FUNCTION_LITERAL, parameters_end_pos), + Object); ++/* MODIFIED CODE END */ + Handle result; + ASSIGN_RETURN_ON_EXCEPTION( + isolate, result, \ No newline at end of file diff --git a/tests/pxScene2d/test_imagecache.cpp b/tests/pxScene2d/test_imagecache.cpp index aee9c2a921..d05a75cdd1 100644 --- a/tests/pxScene2d/test_imagecache.cpp +++ b/tests/pxScene2d/test_imagecache.cpp @@ -1,5 +1,4 @@ /* - pxCore Copyright 2005-2018 John Robinson Licensed under the Apache License, Version 2.0 (the "License"); @@ -46,7 +45,6 @@ limitations under the License. using namespace std; bool defaultCallbackExecuted = false; extern void startFileDownloadInBackground(void* data); -extern bool continueDownloadHandleCheck; // disabled as it causes crash // please note that realloc is also extensively @@ -834,7 +832,6 @@ class rtFileDownloaderTest : public testing::Test, public commonTestFns expectedStatusCode = 0; expectedHttpCode = 0; expectedCachePresence = false; - continueDownloadHandleCheck = false; } virtual void TearDown()