Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
*/
assertEq(function testcase() {
var proto = {};
Object.defineProperty(proto, "prop", {get: function () {return {};}, enumerable: true});
var ConstructFun = function () {};
ConstructFun.prototype = proto;
var child = new ConstructFun;
return Object.getOwnPropertyNames(child).indexOf('prop');
}(), -1);
reportCompare(0, 0, "ok");