Fix remaining strict mode errors in built-ins

Add missing noStrict flags and variable declarations.

Part of issue #35.
This commit is contained in:
André Bargull 2015-05-08 17:40:57 +02:00
parent a66c978c5f
commit d99503e5ca
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
info: The length property of Array has the attribute ReadOnly
es5id: 15.4.3_A2.3
description: Checking if varying the length property fails
flags: [noStrict]
---*/
//CHECK#1

View File

@ -16,7 +16,7 @@ iter.next();
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.done, true, 'Result `done` flag');

View File

@ -18,7 +18,7 @@ var iter;
iter = G();
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.done, true, 'Result `done` flag');