2015-02-25 15:34:07 +00:00
|
|
|
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
// Flags: --harmony-proxies
|
|
|
|
|
|
|
|
var fuse = 1;
|
2015-12-11 14:55:20 +00:00
|
|
|
|
2015-02-25 15:34:07 +00:00
|
|
|
var handler = {
|
|
|
|
get: function() { return function() {} },
|
2015-12-11 14:55:20 +00:00
|
|
|
has() { return true },
|
|
|
|
getOwnPropertyDescriptor: function() {
|
2015-02-25 15:34:07 +00:00
|
|
|
if (fuse-- == 0) throw "please die";
|
|
|
|
return {value: function() {}, configurable: true};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2015-11-13 14:13:50 +00:00
|
|
|
var p = new Proxy({}, handler);
|
2015-02-25 15:34:07 +00:00
|
|
|
var o = Object.create(p);
|
|
|
|
with (o) { f() }
|