| Index: test/mjsunit/regress-3456.js
|
| diff --git a/test/mjsunit/regress-3456.js b/test/mjsunit/regress-3456.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..498953b80736b5d497bc06840711feda8528ec50
|
| --- /dev/null
|
| +++ b/test/mjsunit/regress-3456.js
|
| @@ -0,0 +1,13 @@
|
| +// Copyright 2014 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Flags: --min-preparse-length 1
|
| +
|
| +// Arrow function parsing (commit r22366) changed the flags stored in
|
| +// PreParserExpression, and IsValidReferenceExpression() would return
|
| +// false for certain valid expressions. This case is the minimum amount
|
| +// of code needed to validate that IsValidReferenceExpression() works
|
| +// properly. If it does not, a ReferenceError is thrown during parsing.
|
| +
|
| +function f() { ++(this.foo) }
|
|
|