Index: test/webkit/this-non-object-proto.js |
diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/this-non-object-proto.js |
similarity index 80% |
copy from test/webkit/concat-while-having-a-bad-time.js |
copy to test/webkit/this-non-object-proto.js |
index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..115b203fa4d2582bad5d5dc6a790a0847012343b 100644 |
--- a/test/webkit/concat-while-having-a-bad-time.js |
+++ b/test/webkit/this-non-object-proto.js |
@@ -22,10 +22,13 @@ |
// 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." |
+'This test checks that setting a non-object, non-null value for this.__proto__ does not lead to a crash when setting a property on the this object.' |
); |
-Object.defineProperty(Array.prototype, 0, { writable: false }); |
-shouldBe("[42].concat()", "[42]"); |
+originalProto = this.__proto__; |
+this.__proto__ = 1; |
+shouldBe("this.__proto__", "originalProto"); |
+someProperty = 1; |
+debug('If we got to this point then we did not crash and the test has passed.'); |