Add test for making private symbols non-enumerable
BUG=chromium:664411 Review-Url: https://codereview.chromium.org/2498963002 Cr-Commit-Position: refs/heads/master@{#40950}
This commit is contained in:
parent
c759a3d847
commit
942604dfb2
8
test/mjsunit/regress/regress-private-enumerable.js
Normal file
8
test/mjsunit/regress/regress-private-enumerable.js
Normal file
@ -0,0 +1,8 @@
|
||||
// Copyright 2016 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.
|
||||
|
||||
class A {}
|
||||
class B {}
|
||||
Object.assign(B, A);
|
||||
assertEquals("class B {}", B.toString());
|
Loading…
Reference in New Issue
Block a user