| Index: test/webkit/dfg-uint32array-overflow-constant.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/dfg-uint32array-overflow-constant.js
|
| similarity index 83%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/dfg-uint32array-overflow-constant.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..1de13a3b5d9da086dcfc9c673e074b603debeb04 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/dfg-uint32array-overflow-constant.js
|
| @@ -22,10 +22,17 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| +"Tests that storing a value that is outside of the int32 range into a Uint32Array results in correct wrap-around."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +function foo(a) {
|
| + a[0] = 0x8005465c;
|
| +}
|
|
|
| +var array = new Uint32Array(1);
|
| +
|
| +for (var i = 0; i < 200; ++i) {
|
| + foo(array);
|
| + shouldBe("array[0]", "0x8005465c");
|
| +}
|
|
|
|
|