mirror of https://github.com/tc39/test262.git
Improved description of 11.4.1-4.a-5.
The previous description of the 11.4.1-4.a-5 test case implied that an environment object could not be deleted while inside a with. However, the actual test was to test whether the variable declaration could be deleted. The description has been updated to better reflect this.
This commit is contained in:
parent
943face280
commit
632beef930
|
@ -10,14 +10,14 @@ info: >
|
||||||
language provides no way to directly exercise [[Delete]], the tests are placed here.
|
language provides no way to directly exercise [[Delete]], the tests are placed here.
|
||||||
es5id: 11.4.1-4.a-5
|
es5id: 11.4.1-4.a-5
|
||||||
description: >
|
description: >
|
||||||
delete operator returns false when deleting the environment object
|
delete operator returns false when deleting the declaration of the environment object
|
||||||
inside 'with'
|
inside 'with'
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
includes: [runTestCase.js]
|
includes: [runTestCase.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
function testcase() {
|
function testcase() {
|
||||||
o = new Object();
|
var o = new Object();
|
||||||
o.x = 1;
|
o.x = 1;
|
||||||
var d;
|
var d;
|
||||||
with(o)
|
with(o)
|
||||||
|
|
Loading…
Reference in New Issue