aboutsummaryrefslogtreecommitdiffstats
path: root/src/spread/error/call-expr.template
blob: 3ea419bf26b0de18b8fdb28f9d5dbfe6dbddfdaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/expressions/call/spread-err-
name: CallExpression
esid: sec-function-calls-runtime-semantics-evaluation
es6id: 12.3.4.1
info: |
    CallExpression : MemberExpression Arguments

    [...]
    9. Return EvaluateDirectCall(func, thisValue, Arguments, tailCall).

    12.3.4.3 Runtime Semantics: EvaluateDirectCall

    1. Let argList be ArgumentListEvaluation(arguments).
    [...]
    6. Let result be Call(func, thisValue, argList).
    [...]
---*/

assert.throws(/*{ error }*/, function() {
  (function(/*{ params }*/) {}(/*{ args }*/));
});