rhino/testsrc/doctests/773573.doctest
raw| 1 | // This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | // License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | // file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 4 | |
| 5 | js> version(180) |
| 6 | 0 |
| 7 | js> try { |
| 8 | > (function({a}) { return a }).foo() |
| 9 | > } catch (e) { |
| 10 | > e.message.indexOf("function ({a}) {...}") != -1; |
| 11 | > } |
| 12 | true |
| 13 |