2014-11-03 11:09:14 +11:00

11 lines
233 B
JavaScript

"use strict";
var Test = (function () {
var Test = function Test() {};
Object.defineProperties(Test.prototype, { bar: { get: function () {
throw new Error("wow");
} } });
return Test;
})();
var test = new Test;
test.bar;