From 7221506fb5ec5f6e2c0514fc5288bbfaad29c9fa Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sat, 14 Jun 2014 00:45:34 +0300 Subject: [PATCH] Add DUK_OPT_NO_NONSTD_ACCESSOR_KEY_ARGUMENT --- src/duk_features.h.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/duk_features.h.in b/src/duk_features.h.in index 63c7d4ca..e4ca2c5b 100644 --- a/src/duk_features.h.in +++ b/src/duk_features.h.in @@ -1986,9 +1986,12 @@ typedef FILE duk_file; * accesses. */ -/* FIXME: feature option to disable? */ #define DUK_USE_NONSTD_GETTER_KEY_ARGUMENT #define DUK_USE_NONSTD_SETTER_KEY_ARGUMENT +#if defined(DUK_OPT_NO_NONSTD_ACCESSOR_KEY_ARGUMENT) +#undef DUK_USE_NONSTD_GETTER_KEY_ARGUMENT +#undef DUK_USE_NONSTD_SETTER_KEY_ARGUMENT +#endif /* * Tailcalls