Skip to content

Commit 4cbc77d

Browse files
authored
Update detached arraybuffer handling (#4840)
- Fix isValidIntegerIndex usage in IntegerIndexed objects, [[Get]], [[Set]], [[DefineOwnProperty]] internal methods. - The test262 revision is updated to the latest master hash. - The PR is not separated into individual PRs since the standard change couldn't be tested without the new test262 revision. JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
1 parent d5f048e commit 4cbc77d

10 files changed

+4834
-188
lines changed

jerry-core/api/jerryscript.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "ecma-extended-info.h"
3636
#include "ecma-function-object.h"
3737
#include "ecma-gc.h"
38+
#include "ecma-globals.h"
3839
#include "ecma-helpers.h"
3940
#include "ecma-init-finalize.h"
4041
#include "ecma-iterator-object.h"
@@ -5950,7 +5951,7 @@ jerry_arraybuffer_allocate_buffer_no_throw (ecma_object_t *arraybuffer_p) /**< A
59505951
return false;
59515952
}
59525953

5953-
return ecma_arraybuffer_allocate_buffer (arraybuffer_p) != NULL;
5954+
return ecma_arraybuffer_allocate_buffer (arraybuffer_p) != ECMA_VALUE_ERROR;
59545955
} /* jerry_arraybuffer_allocate_buffer_no_throw */
59555956

59565957
#endif /* JERRY_BUILTIN_TYPEDARRAY */

0 commit comments

Comments
 (0)