add traceur test suite
This commit is contained in:
10
test/fixtures/traceur/Scope/Error_FunctionExpressionInBlock.js
vendored
Normal file
10
test/fixtures/traceur/Scope/Error_FunctionExpressionInBlock.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Options: --block-binding
|
||||
// Error: functionExpression is not defined
|
||||
|
||||
{
|
||||
(function functionExpression() {
|
||||
return 'inner';
|
||||
});
|
||||
|
||||
functionExpression; // function expression doesn't add name to the scope.
|
||||
}
|
||||
Reference in New Issue
Block a user