Mike Pennisi 652e35bd32 Add tests for well-known Symbol, @@hasInstance
Assert the behavior of the built-in method on the FunctionPrototype and
the usage of the Symbol by the `instanceof` operator.
2015-07-28 00:08:55 -04:00

17 lines
570 B
JavaScript

// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.4.2.2
description: Property descriptor
info: >
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
features: [Symbol.hasInstance]
---*/
assert.sameValue(typeof Symbol.hasInstance, 'symbol');
verifyNotEnumerable(Symbol, 'hasInstance');
verifyNotWritable(Symbol, 'hasInstance');
verifyNotConfigurable(Symbol, 'hasInstance');