blob: 94be43f3fe4e5f590da1c5e8fd8ee2e43d85f572 [file] [edit]
// Copyright (C) 2017 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
Object rest element cannot be followed by a comma in ObjectAssignmentPattern.
template: syntax
esid: prod-ObjectAssignmentPattern
negative:
phase: parse
type: SyntaxError
features: [object-rest]
---*/
//- setup
$DONOTEVALUATE();
var rest;
//- elems
{...rest,}
//- vals
{}