diff --git a/src-input/duk_api_stack.c b/src-input/duk_api_stack.c index dfe7ceb5e0..dfc277c1b8 100644 --- a/src-input/duk_api_stack.c +++ b/src-input/duk_api_stack.c @@ -5224,7 +5224,7 @@ DUK_INTERNAL void *duk_push_fixed_buffer_zero(duk_hthread *thr, duk_size_t len) } #if defined(DUK_USE_ES6_PROXY) -DUK_EXTERNAL duk_idx_t duk_push_proxy(duk_hthread *thr) { +DUK_EXTERNAL duk_idx_t duk_push_proxy(duk_hthread *thr, duk_uint_t proxy_flags) { duk_hobject *h_target; duk_hobject *h_handler; duk_hproxy *h_proxy; @@ -5232,6 +5232,7 @@ DUK_EXTERNAL duk_idx_t duk_push_proxy(duk_hthread *thr) { duk_uint_t flags; DUK_ASSERT_API_ENTRY(thr); + DUK_UNREF(proxy_flags); /* DUK__CHECK_SPACE() unnecessary because the Proxy is written to * value stack in-place. @@ -5316,8 +5317,9 @@ DUK_EXTERNAL duk_idx_t duk_push_proxy(duk_hthread *thr) { DUK_ERROR_TYPE_INVALID_ARGS(thr); } #else /* DUK_USE_ES6_PROXY */ -DUK_EXTERNAL duk_idx_t duk_push_proxy(duk_hthread *thr) { +DUK_EXTERNAL duk_idx_t duk_push_proxy(duk_hthread *thr, duk_uint_t proxy_flags) { DUK_ASSERT_API_ENTRY(thr); + DUK_UNREF(proxy_flags); DUK_ERROR_UNSUPPORTED(thr); } #endif /* DUK_USE_ES6_PROXY */ diff --git a/src-input/duk_bi_proxy.c b/src-input/duk_bi_proxy.c index 4c7d93100d..b80bb4b943 100644 --- a/src-input/duk_bi_proxy.c +++ b/src-input/duk_bi_proxy.c @@ -89,7 +89,7 @@ DUK_INTERNAL duk_ret_t duk_bi_proxy_constructor(duk_hthread *thr) { DUK_ASSERT_TOP(thr, 2); /* [ target handler ] */ duk_require_constructor_call(thr); - duk_push_proxy(thr); /* [ target handler ] -> [ proxy ] */ + duk_push_proxy(thr, 0 /*flags*/); /* [ target handler ] -> [ proxy ] */ return 1; /* replacement */ } #endif /* DUK_USE_ES6_PROXY */ diff --git a/src-input/duktape.h.in b/src-input/duktape.h.in index 63e05153d9..dbfeff239e 100644 --- a/src-input/duktape.h.in +++ b/src-input/duktape.h.in @@ -536,7 +536,7 @@ DUK_EXTERNAL_DECL duk_idx_t duk_push_array(duk_context *ctx); DUK_EXTERNAL_DECL duk_idx_t duk_push_c_function(duk_context *ctx, duk_c_function func, duk_idx_t nargs); DUK_EXTERNAL_DECL duk_idx_t duk_push_c_lightfunc(duk_context *ctx, duk_c_function func, duk_idx_t nargs, duk_idx_t length, duk_int_t magic); DUK_EXTERNAL_DECL duk_idx_t duk_push_thread_raw(duk_context *ctx, duk_uint_t flags); -DUK_EXTERNAL_DECL duk_idx_t duk_push_proxy(duk_context *ctx); +DUK_EXTERNAL_DECL duk_idx_t duk_push_proxy(duk_context *ctx, duk_uint_t proxy_flags); #define duk_push_thread(ctx) \ duk_push_thread_raw((ctx), 0 /*flags*/)