Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorJoao Reis <reis@janeasystems.com>2021-09-22 13:54:34 +0300
committerMichaël Zasso <targos@protonmail.com>2022-02-02 19:24:12 +0300
commit5bc8f3bf1cdd633f36d29ce8a44f6f5210d467fa (patch)
treef26f9c33f72768a83a5b7c7c30efc344a37d8ac2 /deps
parent3c3a70dc5f2cb50aaa9370ff7085ec094b5fef6f (diff)
deps: make v8.h compatible with VS2015
There is a bug in the most recent version of VS2015 that affects v8.h and therefore prevents compilation of addons. Refs: https://stackoverflow.com/q/38378693 PR-URL: https://github.com/nodejs/node/pull/32116 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps')
-rw-r--r--deps/v8/include/v8-message.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/include/v8-message.h b/deps/v8/include/v8-message.h
index a17eb7026dd..d771a49ff9c 100644
--- a/deps/v8/include/v8-message.h
+++ b/deps/v8/include/v8-message.h
@@ -61,7 +61,9 @@ class ScriptOriginOptions {
*/
class V8_EXPORT ScriptOrigin {
public:
+ #if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
V8_DEPRECATED("Use constructor with primitive C++ types")
+ #endif
ScriptOrigin(
Local<Value> resource_name, Local<Integer> resource_line_offset,
Local<Integer> resource_column_offset,
@@ -72,7 +74,9 @@ class V8_EXPORT ScriptOrigin {
Local<Boolean> is_wasm = Local<Boolean>(),
Local<Boolean> is_module = Local<Boolean>(),
Local<Data> host_defined_options = Local<Data>());
+ #if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
V8_DEPRECATED("Use constructor that takes an isolate")
+ #endif
explicit ScriptOrigin(Local<Value> resource_name,
int resource_line_offset = 0,
int resource_column_offset = 0,