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 36aefe4 commit 50270e1Copy full SHA for 50270e1
graal-js/src/com.oracle.truffle.js.test/js/GR-48463.js
@@ -0,0 +1,21 @@
1
+/*
2
+ * Copyright (c) 2023, 2023, Oracle and/or its affiliates. All rights reserved.
3
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
+ *
5
+ * Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6
+ */
7
+
8
+/**
9
+ * @option debug-builtin
10
11
12
+load("assert.js");
13
14
+var array = new Uint8Array(8);
15
+Debug.typedArrayDetachBuffer(array.buffer);
16
17
+assertThrows(function() {
18
+ Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, 'byteLength').get.call(array);
19
+}, TypeError);
20
21
+assertSameContent([], Object.getOwnPropertyNames(array));
0 commit comments