From d0b42e75481727a979ba5ef6104d8d8c37ff88e8 Mon Sep 17 00:00:00 2001 From: tofpie Date: Sat, 2 Jan 2021 00:05:03 +0100 Subject: [PATCH] Fix attribute configurable of the length property of arguments --- boa/src/builtins/function/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa/src/builtins/function/mod.rs b/boa/src/builtins/function/mod.rs index ae46d8068df..4a07f00855f 100644 --- a/boa/src/builtins/function/mod.rs +++ b/boa/src/builtins/function/mod.rs @@ -182,7 +182,7 @@ pub fn create_unmapped_arguments_object(arguments_list: &[Value]) -> Value { // Set length let length = DataDescriptor::new( len, - Attribute::WRITABLE | Attribute::NON_ENUMERABLE | Attribute::PERMANENT, + Attribute::WRITABLE | Attribute::NON_ENUMERABLE | Attribute::CONFIGURABLE, ); // Define length as a property obj.ordinary_define_own_property("length", length.into());