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
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/compiler-specific.h')
-rw-r--r--deps/v8/src/base/compiler-specific.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/base/compiler-specific.h b/deps/v8/src/base/compiler-specific.h
index 75f89298f1d..8a5b9e6a605 100644
--- a/deps/v8/src/base/compiler-specific.h
+++ b/deps/v8/src/base/compiler-specific.h
@@ -92,4 +92,15 @@
#endif // V8_CC_MSVC
+// Allowing the use of noexcept by removing the keyword on older compilers that
+// do not support adding noexcept to default members.
+#if ((!defined(V8_CC_GNU) && !defined(V8_TARGET_ARCH_MIPS) && \
+ !defined(V8_TARGET_ARCH_MIPS64) && !defined(V8_TARGET_ARCH_PPC) && \
+ !defined(V8_TARGET_ARCH_PPC64)) || \
+ (defined(__clang__) && __cplusplus > 201300L))
+#define V8_NOEXCEPT noexcept
+#else
+#define V8_NOEXCEPT
+#endif
+
#endif // V8_BASE_COMPILER_SPECIFIC_H_