File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Polyfills/XMLHttpRequest/Source Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 8
8
steps :
9
9
- script : |
10
10
sudo apt-get update
11
- sudo apt-get install libjavascriptcoregtk-4.0 -dev libcurl4-openssl-dev ninja-build
11
+ sudo apt-get install libjavascriptcoregtk-4.1 -dev libcurl4-openssl-dev ninja-build
12
12
displayName: 'Install packages'
13
13
14
14
- script : cmake -B Build/ubuntu -GNinja -D CMAKE_BUILD_TYPE=RelWithDebInfo
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ FetchContent_Declare(llhttp
30
30
URL "https://github.com/nodejs/llhttp/archive/refs/tags/release/v8.1.0.tar.gz" )
31
31
FetchContent_Declare(UrlLib
32
32
GIT_REPOSITORY https://github.com/BabylonJS/UrlLib.git
33
- GIT_TAG 2f12534f242ab15aa761c3b273538f44787cf5e3 )
33
+ GIT_TAG e0eb7d4c36c2cca5bbe82b94fd141734420ba84e )
34
34
# --------------------------------------------------
35
35
36
36
FetchContent_MakeAvailable(CMakeExtensions)
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ elseif(ANDROID)
7
7
set (NAPI_JAVASCRIPT_ENGINE "V8" CACHE STRING "JavaScript engine for Node-API" )
8
8
elseif (UNIX )
9
9
set (NAPI_JAVASCRIPT_ENGINE "JavaScriptCore" CACHE STRING "JavaScript engine for Node-API" )
10
- set (JAVASCRIPTCORE_LIBRARY "/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0 .so" CACHE STRING "Path to the JavaScriptCore shared library" )
10
+ set (JAVASCRIPTCORE_LIBRARY "/usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1 .so" CACHE STRING "Path to the JavaScriptCore shared library" )
11
11
else ()
12
12
message (FATAL_ERROR "Unable to select Node-API JavaScript engine for platform" )
13
13
endif ()
@@ -76,7 +76,7 @@ if(NAPI_BUILD_ABI)
76
76
set (LINK_LIBRARIES ${LINK_LIBRARIES}
77
77
PUBLIC ${JAVASCRIPTCORE_LIBRARY} )
78
78
set (INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES}
79
- PUBLIC "/usr/include/webkitgtk-4.0 /" )
79
+ PUBLIC "/usr/include/webkitgtk-4.1 /" )
80
80
else ()
81
81
message (FATAL_ERROR "Unsupported JavaScript engine: ${NAPI_JAVASCRIPT_ENGINE} " )
82
82
endif ()
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ namespace Babylon::Polyfills::Internal
117
117
gsl::span<const std::byte> responseBuffer{m_request.ResponseBuffer ()};
118
118
auto arrayBuffer{Napi::ArrayBuffer::New (Env (), responseBuffer.size ())};
119
119
std::memcpy (arrayBuffer.Data (), responseBuffer.data (), arrayBuffer.ByteLength ());
120
- return std::move ( arrayBuffer) ;
120
+ return arrayBuffer;
121
121
}
122
122
}
123
123
@@ -165,7 +165,7 @@ namespace Babylon::Polyfills::Internal
165
165
responseHeadersObject.Set (key, value);
166
166
}
167
167
168
- return std::move ( responseHeadersObject) ;
168
+ return responseHeadersObject;
169
169
}
170
170
171
171
void XMLHttpRequest::SetRequestHeader (const Napi::CallbackInfo& info)
You can’t perform that action at this time.
0 commit comments