mirror of https://github.com/tc39/test262.git
Fix remaining strict mode errors in built-ins
Add missing noStrict flags and variable declarations. Part of issue #35.
This commit is contained in:
parent
a66c978c5f
commit
d99503e5ca
|
@ -5,6 +5,7 @@
|
||||||
info: The length property of Array has the attribute ReadOnly
|
info: The length property of Array has the attribute ReadOnly
|
||||||
es5id: 15.4.3_A2.3
|
es5id: 15.4.3_A2.3
|
||||||
description: Checking if varying the length property fails
|
description: Checking if varying the length property fails
|
||||||
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
|
|
|
@ -16,7 +16,7 @@ iter.next();
|
||||||
|
|
||||||
assert.throws(E, function() { iter.throw(new E()); });
|
assert.throws(E, function() { iter.throw(new E()); });
|
||||||
|
|
||||||
result = iter.next();
|
var result = iter.next();
|
||||||
|
|
||||||
assert.sameValue(result.value, undefined, 'Result `value`');
|
assert.sameValue(result.value, undefined, 'Result `value`');
|
||||||
assert.sameValue(result.done, true, 'Result `done` flag');
|
assert.sameValue(result.done, true, 'Result `done` flag');
|
||||||
|
|
|
@ -18,7 +18,7 @@ var iter;
|
||||||
iter = G();
|
iter = G();
|
||||||
assert.throws(E, function() { iter.throw(new E()); });
|
assert.throws(E, function() { iter.throw(new E()); });
|
||||||
|
|
||||||
result = iter.next();
|
var result = iter.next();
|
||||||
|
|
||||||
assert.sameValue(result.value, undefined, 'Result `value`');
|
assert.sameValue(result.value, undefined, 'Result `value`');
|
||||||
assert.sameValue(result.done, true, 'Result `done` flag');
|
assert.sameValue(result.done, true, 'Result `done` flag');
|
||||||
|
|
Loading…
Reference in New Issue