We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c709030 commit ea7cc54Copy full SHA for ea7cc54
graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/builtins/ArrayBufferPrototypeBuiltins.java
@@ -140,6 +140,9 @@ protected int directArrayBuffer(Object thisObj) {
140
protected int interopArrayBuffer(Object thisObj,
141
@CachedLibrary(limit = "InteropLibraryLimit") InteropLibrary interop) {
142
Object buffer = JSArrayBuffer.getInteropBuffer(thisObj);
143
+ if (!getContext().getTypedArrayNotDetachedAssumption().isValid() && buffer == null) {
144
+ return handleDetachedBuffer();
145
+ }
146
try {
147
long bufferSize = interop.getBufferSize(buffer);
148
// Buffer size was already checked in the ArrayBuffer constructor.
0 commit comments