mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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 Backport-PR-URL: https://github.com/nodejs/node/pull/30513 PR-URL: https://github.com/nodejs/node/pull/30020 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
5bc35732aa
commit
46383616e3
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -39,7 +39,7 @@
|
||||
|
||||
# Reset this number to 0 on major V8 upgrades.
|
||||
# Increment by one for each non-official patch applied to deps/v8.
|
||||
'v8_embedder_string': '-node.7',
|
||||
'v8_embedder_string': '-node.8',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
||||
Vendored
+2
@@ -1738,9 +1738,11 @@ class V8_EXPORT ScriptCompiler {
|
||||
public:
|
||||
enum Encoding { ONE_BYTE, TWO_BYTE, UTF8 };
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
|
||||
V8_DEPRECATE_SOON(
|
||||
"This class takes ownership of source_stream, so use the constructor "
|
||||
"taking a unique_ptr to make these semantics clearer")
|
||||
#endif
|
||||
StreamedSource(ExternalSourceStream* source_stream, Encoding encoding);
|
||||
StreamedSource(std::unique_ptr<ExternalSourceStream> source_stream,
|
||||
Encoding encoding);
|
||||
|
||||
Reference in new issue
Block a user