Skip to content
Snippets Groups Projects
Commit 8dd63de7 authored by Gorkem Yakin's avatar Gorkem Yakin
Browse files

Merge pull request #496 from bocoup/495-enumerate

Update tests for Reflect.enumerate and Proxy enumerate trap
parents 0bd4e9d2 efced6eb
No related branches found
No related tags found
No related merge requests found
// 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.5
description: >
Throws a TypeError if target is a Symbol
info: >
26.1.5 Reflect.enumerate ( target )
1. If Type(target) is not Object, throw a TypeError exception.
...
features: [Symbol]
---*/
assert.throws(TypeError, function() {
Reflect.enumerate(Symbol(1), 'p');
});
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
id: sec-reflect-object
description: >
Reflect.enumerate was removed and it's not a function anymore
---*/
assert.sameValue(Reflect.hasOwnProperty("enumerate"), false);
assert.sameValue(Reflect.enumerate, undefined);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment