Skip to content

Commit e2fc08f

Browse files
joaocgreistargos
authored andcommitted
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: #33376 PR-URL: #32831 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 74b623b commit e2fc08f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.5',
39+
'v8_embedder_string': '-node.6',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/include/v8.h

+2
Original file line numberDiff line numberDiff line change
@@ -1752,9 +1752,11 @@ class V8_EXPORT ScriptCompiler {
17521752
public:
17531753
enum Encoding { ONE_BYTE, TWO_BYTE, UTF8 };
17541754

1755+
#if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
17551756
V8_DEPRECATE_SOON(
17561757
"This class takes ownership of source_stream, so use the constructor "
17571758
"taking a unique_ptr to make these semantics clearer")
1759+
#endif
17581760
StreamedSource(ExternalSourceStream* source_stream, Encoding encoding);
17591761
StreamedSource(std::unique_ptr<ExternalSourceStream> source_stream,
17601762
Encoding encoding);

0 commit comments

Comments
 (0)