mirror of https://github.com/tc39/test262.git
23 lines
358 B
JavaScript
23 lines
358 B
JavaScript
function foo() {
|
|
return new Proxy({},
|
|
new Proxy({}, {
|
|
get: function () {
|
|
throw "expected exception";
|
|
}
|
|
})
|
|
);
|
|
}
|
|
|
|
var a = foo();
|
|
var b = Object.create(a);
|
|
|
|
var exception;
|
|
try {
|
|
for (var v in b) { }
|
|
} catch (e) {
|
|
exception = e;
|
|
}
|
|
|
|
if (exception != "expected exception")
|
|
throw "FAIL";
|