summaryrefslogtreecommitdiff
path: root/src/js_native_api_v8.cc
diff options
context:
space:
mode:
authorGary Hsu <bghgary@users.noreply.github.com>2018-11-21 10:53:22 -0800
committerGabriel Schulhof <gabriel.schulhof@intel.com>2018-11-21 16:37:59 -0800
commitd1a55d329a0039061915f904baafb1abfced22ab (patch)
treeebaa6892f77e40c60f7e314ae1c45d25f29111c8 /src/js_native_api_v8.cc
parent1d3e40d9aa33af925baafd7e284aa6577ded794e (diff)
downloadandroid-node-v8-d1a55d329a0039061915f904baafb1abfced22ab.tar.gz
android-node-v8-d1a55d329a0039061915f904baafb1abfced22ab.tar.bz2
android-node-v8-d1a55d329a0039061915f904baafb1abfced22ab.zip
src: add include for standalone compile
- Include algorithm header in js_native_api_v8.cc since std::min requires it. - Add comments to js_native_api_v8_internals.h for NAPI_VERSION PR-URL: https://github.com/nodejs/node/pull/24498 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/js_native_api_v8.cc')
-rw-r--r--src/js_native_api_v8.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc
index b28376afb7..144cfad8e4 100644
--- a/src/js_native_api_v8.cc
+++ b/src/js_native_api_v8.cc
@@ -1,5 +1,6 @@
#include <limits.h> // INT_MAX
#include <cmath>
+#include <algorithm>
#define NAPI_EXPERIMENTAL
#include "js_native_api_v8.h"
#include "js_native_api.h"