blob: 556bd4d15e33d2c119584ee65b77bd1e64c05fc8 [file] [log] [blame]
Tests that DFG respects neutered typed arrays.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS array.length is 100
PASS array[0] is 42
PASS foo(array) is 100
PASS bar(array) is 42
PASS array.length is 0
PASS array[0] threw exception TypeError: Underlying ArrayBuffer has been detached from the view.
PASS foo(array) is 0
PASS bar(array) threw exception TypeError: Underlying ArrayBuffer has been detached from the view.
PASS successfullyParsed is true
TEST COMPLETE