| Index: test/mjsunit/compiler/delete.js
|
| diff --git a/test/mjsunit/compiler/delete.js b/test/mjsunit/compiler/delete.js
|
| index 373a1cbcf3631eee57c599eba63f0c1d3285bba8..2aaecb25b6b9cde5804f4ae8d9e35b47c28b3bce 100644
|
| --- a/test/mjsunit/compiler/delete.js
|
| +++ b/test/mjsunit/compiler/delete.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -66,6 +66,7 @@ assertEquals(2, ((delete 0) || 2) + 1);
|
| assertEquals(3, (function (x) { return ((delete x) || 2) + 1; })(0));
|
|
|
|
|
| -// 'this' at toplevel is different from all other global variables---not
|
| -// deletable.
|
| +// 'this' is not a Reference so delete returns true (see section 11.4.1,
|
| +// step 2 of ES 5.1).
|
| assertEquals(true, delete this);
|
| +assertEquals(true, (function () { return delete this; })());
|
|
|