2015-07-30 02:58:17 +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.11
|
|
|
|
description: >
|
|
|
|
Throws a TypeError if target is a Symbol
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2015-07-30 02:58:17 +02:00
|
|
|
26.1.11 Reflect.ownKeys ( target )
|
|
|
|
|
|
|
|
1. If Type(target) is not Object, throw a TypeError exception.
|
|
|
|
...
|
2018-07-21 00:42:39 +02:00
|
|
|
features: [Reflect, Symbol]
|
2015-07-30 02:58:17 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
Reflect.ownKeys(Symbol(1));
|
|
|
|
});
|