2015-07-29 23:30:26 +02:00
|
|
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
es6id: 26.1.9
|
|
|
|
description: >
|
|
|
|
Throws a TypeError if target is a Symbol
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2015-07-29 23:30:26 +02:00
|
|
|
26.1.9 Reflect.has ( target, propertyKey )
|
|
|
|
|
|
|
|
1. If Type(target) is not Object, throw a TypeError exception.
|
|
|
|
...
|
2018-07-21 00:42:39 +02:00
|
|
|
features: [Reflect, Symbol]
|
2015-07-29 23:30:26 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
Reflect.has(Symbol(1), 'p');
|
|
|
|
});
|