Index: test/mjsunit/es6/symbols.js |
diff --git a/test/mjsunit/es6/symbols.js b/test/mjsunit/es6/symbols.js |
index 220439291cb86125aee42f5ef5f76724f6d07766..b465bee14a9b4630af3eb56be4bf18ccf008fc9c 100644 |
--- a/test/mjsunit/es6/symbols.js |
+++ b/test/mjsunit/es6/symbols.js |
@@ -367,6 +367,34 @@ for (var i in objs) { |
} |
+function TestDefineProperties() { |
+ var properties = {} |
+ for (var i in symbols) { |
+ Object.defineProperty( |
+ properties, symbols[i], {value: {value: i}, enumerable: i % 2 === 0}) |
+ } |
+ var o = Object.defineProperties({}, properties) |
+ for (var i in symbols) { |
+ assertEquals(i % 2 === 0, symbols[i] in o) |
+ } |
+} |
+TestDefineProperties() |
+ |
+ |
+function TestCreate() { |
+ var properties = {} |
+ for (var i in symbols) { |
+ Object.defineProperty( |
+ properties, symbols[i], {value: {value: i}, enumerable: i % 2 === 0}) |
+ } |
+ var o = Object.create(Object.prototype, properties) |
+ for (var i in symbols) { |
+ assertEquals(i % 2 === 0, symbols[i] in o) |
+ } |
+} |
+TestCreate() |
+ |
+ |
function TestCachedKeyAfterScavenge() { |
gc(); |
// Keyed property lookup are cached. Hereby we assume that the keys are |