summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/function/invalid-2-names.js
blob: 06ee6ac8656198ec34ffda4eae25c31a1de3b4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |reftest| error:SyntaxError
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 13.0-1
description: >
    13.0 - multiple names in one function declaration is not allowed,
    two function names
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();

function x, y() {}