| Index: test/mjsunit/compiler/globals.js
|
| diff --git a/test/mjsunit/compiler/globals.js b/test/mjsunit/compiler/globals.js
|
| index 0abd5dd33cf47979f15f0b46f2f45b64cc531de2..3b778daaecd3a5fc399e07fa2ad6934037234c2d 100644
|
| --- a/test/mjsunit/compiler/globals.js
|
| +++ b/test/mjsunit/compiler/globals.js
|
| @@ -63,3 +63,14 @@ assertEquals(4, g);
|
| code = "g--; 1";
|
| assertEquals(1, eval(code));
|
| assertEquals(3, g);
|
| +
|
| +// Test simple assignment to non-deletable and deletable globals.
|
| +var glo1 = 0;
|
| +function f1(x) { glo1 = x; }
|
| +f1(42);
|
| +assertEquals(glo1, 42);
|
| +
|
| +glo2 = 0;
|
| +function f2(x) { glo2 = x; }
|
| +f2(42);
|
| +assertEquals(42, glo2);
|
|
|