From 93be1cf71e1867062fac3dc79990f837278566a5 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Fri, 13 Jan 2017 13:35:26 +0200 Subject: [PATCH] Fix typedarray .set() argument validation --- src-input/duk_bi_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-input/duk_bi_buffer.c b/src-input/duk_bi_buffer.c index 9a2fdd7b..4a5b83d4 100644 --- a/src-input/duk_bi_buffer.c +++ b/src-input/duk_bi_buffer.c @@ -1656,7 +1656,7 @@ DUK_INTERNAL duk_ret_t duk_bi_typedarray_set(duk_context *ctx) { } duk_hbufobj_promote_plain(ctx, 0); - h_obj = duk_known_hobject(ctx, 0); + h_obj = duk_require_hobject(ctx, 0); /* XXX: V8 throws a TypeError for negative values. Would it * be more useful to interpret negative offsets here from the