Sign in
webkit
/
WebKit
/
14cb98a360e661c1b39a648e8ccc3be2e2757789
/
.
/
JSTests
/
stress
/
typedarray-sort-should-not-use-a-regular-array-as-temp-buffer.js
blob: 87223da33db9f248977dbc891584cd0dc69d748c [
file
] [
log
] [
blame
]
function
foo
()
{
let arr1
=
new
Int32Array
(
new
SharedArrayBuffer
(
12
));
Object
.
defineProperty
(
Array
.
prototype
,
"0"
,
{
get
:
()
=>
{
function
*
foo2
()
{
throw
"stuff"
;
};
foo2
();
},
set
:
()
=>
{
}
});
arr1
.
sort
();
}
try
{
foo
()
}
catch
(
y
)
{
}