| Index: test/mjsunit/harmony/regress/regress-4482.js
|
| diff --git a/test/mjsunit/harmony/regress/regress-4482.js b/test/mjsunit/harmony/regress/regress-4482.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bffca42ecca7457c8816fd967c50be5b43db2ebd
|
| --- /dev/null
|
| +++ b/test/mjsunit/harmony/regress/regress-4482.js
|
| @@ -0,0 +1,9 @@
|
| +// Copyright 2015 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: --harmony-sloppy --nolegacy-const
|
| +
|
| +assertEquals("function", (function f() { f = 42; return typeof f })());
|
| +assertEquals("function",
|
| + (function* g() { g = 42; yield typeof g })().next().value);
|
|
|