18 lines
258 B
JavaScript
18 lines
258 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; |