| Index: test/mjsunit/harmony/private.js
|
| diff --git a/test/mjsunit/harmony/private.js b/test/mjsunit/harmony/private.js
|
| index 9c9bf2c14fe78d366900d58a3659306605fb8bf8..a14afe04e5f90fc5691c00311c6b63793c3b1204 100644
|
| --- a/test/mjsunit/harmony/private.js
|
| +++ b/test/mjsunit/harmony/private.js
|
| @@ -328,3 +328,17 @@ function TestCachedKeyAfterScavenge() {
|
| }
|
| }
|
| TestCachedKeyAfterScavenge();
|
| +
|
| +
|
| +function TestGetOwnPropertySymbols() {
|
| + var privateSymbol = %CreatePrivateSymbol("private")
|
| + var publicSymbol = Symbol()
|
| + var publicSymbol2 = Symbol()
|
| + var obj = {}
|
| + obj[publicSymbol] = 1
|
| + obj[privateSymbol] = 2
|
| + obj[publicSymbol2] = 3
|
| + var syms = Object.getOwnPropertySymbols(obj)
|
| + assertEquals(syms, [publicSymbol, publicSymbol2])
|
| +}
|
| +TestGetOwnPropertySymbols()
|
|
|