| Index: test/webkit/typeof-codegen-crash.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/typeof-codegen-crash.js
|
| similarity index 79%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/typeof-codegen-crash.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..a8ea5e0e12b9e416e5248d49c92650c1e2d81354 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/typeof-codegen-crash.js
|
| @@ -22,10 +22,15 @@
|
| // 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 for a crash when optimizing expressions of the form 'typeof o == constant' where 'constant' is not a string."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| -
|
| +var o = { };
|
|
|
| +shouldBeFalse("typeof o == undefined");
|
| +shouldBeFalse("typeof o == null");
|
| +shouldBeFalse("typeof o == true");
|
| +shouldBeFalse("typeof o == false");
|
| +shouldBeFalse("typeof o == 1");
|
| +shouldBeFalse("typeof o == 1.0");
|
| +shouldBeFalse("typeof o == { }");
|
|
|