![]() Our implementation of environment.CreateImmutableBinding(name, true) in this AO was not correctly initializing const variables in strict mode. This would mean that constant declarations in for loop bodies would not throw if they were modified. To fix this, add a new parameter to CreateVariable to set strict mode. Also remove the vm.is_strict mode check here, as it doesn't look like anywhere in the spec will change strict mode depending on whether the script itself is running in script mode or not. This fixes two of our test-js tests, no change to test262. |
||
---|---|---|
.. | ||
break-basic.js | ||
continue-basic.js | ||
do-while-basic.js | ||
for-await-of.js | ||
for-basic.js | ||
for-head-errors.js | ||
for-in-basic.js | ||
for-no-curlies.js | ||
for-of-basic.js | ||
for-scopes.js | ||
while-basic.js |