79e74db3e0
BUG=v8:4211 LOG=Y R=rossberg@chromium.org Review URL: https://codereview.chromium.org/1315823002 Cr-Commit-Position: refs/heads/master@{#30373}
13 lines
482 B
JavaScript
13 lines
482 B
JavaScript
// 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-arrow-functions --harmony-rest-parameters
|
|
|
|
assertThrows("()=>{}()", SyntaxError);
|
|
assertThrows("x=>{}()", SyntaxError);
|
|
assertThrows("(...x)=>{}()", SyntaxError);
|
|
assertThrows("(x)=>{}()", SyntaxError);
|
|
assertThrows("(x,y)=>{}()", SyntaxError);
|
|
assertThrows("(x,y,...z)=>{}()", SyntaxError);
|