| 1 |
// Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 11.13.2-52-s |
| 6 |
description: > |
| 7 |
Strict Mode - TypeError is thrown if The LeftHandSide of a |
| 8 |
Compound Assignment operator(>>>=) is a reference to a |
| 9 |
non-existent property of an object whose [[Extensible]] internal |
| 10 |
property if false |
| 11 |
flags: [onlyStrict] |
| 12 |
---*/ |
| 13 |
|
| 14 |
var obj = {}; |
| 15 |
Object.preventExtensions(obj); |
| 16 |
assert.throws(TypeError, function() { |
| 17 |
obj.len >>>= 10; |
| 18 |
}); |