propertyhelper-verifynotenumerable-not-enumerable-symbol.js (448B)
1 // Copyright (C) 2016 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: > 6 Objects whose specified symbol property is not enumerable satisfy the 7 assertion. 8 includes: [propertyHelper.js] 9 features: [Symbol] 10 ---*/ 11 12 var obj = {}; 13 var s = Symbol('1'); 14 Object.defineProperty(obj, s, { 15 enumerable: false 16 }); 17 18 verifyNotEnumerable(obj, s); 19 20 reportCompare(0, 0);