2015-05-18 15:52:57 +00:00
|
|
|
// 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.
|
|
|
|
//
|
2015-06-26 21:16:42 +00:00
|
|
|
// Flags: --harmony-rest-parameters
|
2015-05-18 15:52:57 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var _bad = "setting this should fail!";
|
|
|
|
class C {
|
|
|
|
get bad() { return _bad; }
|
|
|
|
set bad(...args) { _bad = args[0]; }
|
|
|
|
}
|