test262/test/built-ins/Proxy/deleteProperty/null-handler.js

21 lines
397 B
JavaScript
Raw Normal View History

2015-06-03 01:14:56 +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: 9.5.10
description: >
[[Delete]] (P)
3. If handler is null, throw a TypeError exception.
features: [Proxy]
2015-06-03 01:14:56 +02:00
---*/
var p = Proxy.revocable({
attr: 1
2015-06-03 01:14:56 +02:00
}, {});
p.revoke();
assert.throws(TypeError, function() {
delete p.proxy.attr;
2015-06-03 01:14:56 +02:00
});