Skip to content

Commit cd77f09

Browse files
committed
Use 'isArrayElementWritable' instead of 'isArrayElementModifiable'.
1 parent e95abe1 commit cd77f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/foreign/AccessForeignItemNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public Object doForeignObject(Object object, Object idx, Object value,
239239
}
240240

241241
private void writeForeignValue(Object object, int idx, Object value, InteropLibrary lib) throws UnsupportedMessageException, UnsupportedTypeException {
242-
if (lib.isArrayElementModifiable(object, idx)) {
242+
if (lib.isArrayElementWritable(object, idx)) {
243243
try {
244244
lib.writeArrayElement(object, idx, value);
245245
return;

0 commit comments

Comments
 (0)