// 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.// ES6 21.2.4.1varproto_desc=Object.getOwnPropertyDescriptor(RegExp,"prototype");assertFalse(proto_desc.writable);assertFalse(proto_desc.enumerable);assertFalse(proto_desc.configurable);// ES6 21.2.5.1varproto=proto_desc.value;assertFalse(protoinstanceofRegExp);assertEquals(undefined,Object.getOwnPropertyDescriptor(proto,"valueOf"));assertEquals(proto.valueOf,Object.prototype.valueOf);varproto_constr=Object.getOwnPropertyDescriptor(proto,"constructor");assertEquals(RegExp,proto_constr.value);