mirror of https://github.com/tc39/test262.git
Delete invalid tests
This commit is contained in:
parent
a92de6fa2d
commit
8a2bfb48d4
|
@ -1,28 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Assignment Operator calls PutValue(lref, rval)
|
|
||||||
es5id: S11.13.1_A5_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, rval) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when assignment is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {x: 1};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x = (delete scope.x, 2);
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 2) {
|
|
||||||
$ERROR('#1: scope.x === 2. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Assignment Operator calls PutValue(lref, rval)
|
|
||||||
es5id: S11.13.1_A5_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, rval) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when assignment is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var global = this;
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
value: 1
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x = (delete global.x, 2);
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 2) {
|
|
||||||
$ERROR('#1: this.x === 2. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.10_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x ^= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x ^= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x ^= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 1) {
|
|
||||||
$ERROR('#1: scope.x === 1. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.10_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x ^= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x ^= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x ^= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 1) {
|
|
||||||
$ERROR('#1: this.x === 1. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.11_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x |= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x |= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x |= 4;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 6) {
|
|
||||||
$ERROR('#1: scope.x === 6. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.11_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x |= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x |= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x |= 4;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 6) {
|
|
||||||
$ERROR('#1: this.x === 6. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.1_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x *= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x *= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x *= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 6) {
|
|
||||||
$ERROR('#1: scope.x === 6. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.1_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x *= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x *= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x *= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 6) {
|
|
||||||
$ERROR('#1: this.x === 6. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.2_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x /= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x /= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 6;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x /= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 2) {
|
|
||||||
$ERROR('#1: scope.x === 2. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.2_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x /= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x /= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 6;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x /= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 2) {
|
|
||||||
$ERROR('#1: this.x === 2. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.3_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x %= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x %= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 5;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x %= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 2) {
|
|
||||||
$ERROR('#1: scope.x === 2. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.3_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x %= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x %= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 5;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x %= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 2) {
|
|
||||||
$ERROR('#1: this.x === 2. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.4_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x += y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x += y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x += 1;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 3) {
|
|
||||||
$ERROR('#1: scope.x === 3. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.4_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x += y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x += y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x += 1;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 3) {
|
|
||||||
$ERROR('#1: this.x === 3. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.5_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x -= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x -= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x -= 1;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 1) {
|
|
||||||
$ERROR('#1: scope.x === 1. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.5_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x -= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x -= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x -= 1;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 1) {
|
|
||||||
$ERROR('#1: this.x === 1. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.6_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x <<= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x <<= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x <<= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 16) {
|
|
||||||
$ERROR('#1: scope.x === 16. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.6_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x <<= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x <<= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x <<= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 16) {
|
|
||||||
$ERROR('#1: this.x === 16. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.7_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x >>= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x >>= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 16;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x >>= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 2) {
|
|
||||||
$ERROR('#1: scope.x === 2. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.7_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x >>= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x >>= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 16;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x >>= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 2) {
|
|
||||||
$ERROR('#1: this.x === 2. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.8_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x >>>= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x >>>= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 16;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x >>>= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 2) {
|
|
||||||
$ERROR('#1: scope.x === 2. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.8_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x >>>= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x >>>= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 16;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x >>>= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 2) {
|
|
||||||
$ERROR('#1: this.x === 2. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.9_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x &= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x &= y".
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 5;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x &= 3;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 1) {
|
|
||||||
$ERROR('#1: scope.x === 1. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Compound Assignment Operator calls PutValue(lref, v)
|
|
||||||
es5id: S11.13.2_A5.9_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lref returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lref, v) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x &= y' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
Check operator is "x &= y".
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 5;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x &= 3;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 1) {
|
|
||||||
$ERROR('#1: this.x === 1. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator x-- calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.3.2_A5_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x--' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x--;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 1) {
|
|
||||||
$ERROR('#1: scope.x === 1. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator x-- calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.3.2_A5_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x--' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x--;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 1) {
|
|
||||||
$ERROR('#1: this.x === 1. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator x++ calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.3.1_A5_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x++' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x++;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 3) {
|
|
||||||
$ERROR('#1: scope.x === 3. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator x++ calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.3.1_A5_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when 'x++' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
x++;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 3) {
|
|
||||||
$ERROR('#1: this.x === 3. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator --x calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.4.5_A5_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when '--x' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
--x;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 1) {
|
|
||||||
$ERROR('#1: scope.x === 1. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator --x calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.4.5_A5_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when '--x' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
--x;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 1) {
|
|
||||||
$ERROR('#1: this.x === 1. Actual: ' + (this.x));
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator ++x calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.4.4_A5_T4
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when '++x' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
flags: [noStrict]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var scope = {
|
|
||||||
get x() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
with (scope) {
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
++x;
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.x !== 3) {
|
|
||||||
$ERROR('#1: scope.x === 3. Actual: ' + (scope.x));
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
// Copyright (C) 2014 André Bargull. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
info: Operator ++x calls PutValue(lhs, newValue)
|
|
||||||
es5id: S11.4.4_A5_T5
|
|
||||||
description: >
|
|
||||||
Evaluating LeftHandSideExpression lhs returns Reference type; Reference
|
|
||||||
base value is an environment record and environment record kind is
|
|
||||||
object environment record. PutValue(lhs, newValue) uses the initially
|
|
||||||
created Reference even if the environment binding is no longer present.
|
|
||||||
No ReferenceError is thrown when '++x' is in strict-mode code and the
|
|
||||||
original binding is no longer present.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
Object.defineProperty(this, "x", {
|
|
||||||
configurable: true,
|
|
||||||
get: function() {
|
|
||||||
delete this.x;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
"use strict";
|
|
||||||
++x;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if (this.x !== 3) {
|
|
||||||
$ERROR('#1: this.x === 3. Actual: ' + (this.x));
|
|
||||||
}
|
|
Loading…
Reference in New Issue