Index: test/mjsunit/es6/symbols.js |
diff --git a/test/mjsunit/es6/symbols.js b/test/mjsunit/es6/symbols.js |
index 60737af4b9833495e3e59b1af8d67edb3d1cc160..d4a968a04c262dbfd277483ebfdbc476689b56de 100644 |
--- a/test/mjsunit/es6/symbols.js |
+++ b/test/mjsunit/es6/symbols.js |
@@ -501,3 +501,11 @@ function TestRegistry() { |
assertSame("x3", Symbol.keyFor(symbol3)) |
} |
TestRegistry() |
+ |
+ |
+function TestGetOwnPropertySymbolsOnPrimitives() { |
+ assertEquals(Object.getOwnPropertySymbols(true), []); |
+ assertEquals(Object.getOwnPropertySymbols(5000), []); |
+ assertEquals(Object.getOwnPropertySymbols("OK"), []); |
+} |
+TestGetOwnPropertySymbolsOnPrimitives(); |