Add 'configurable' property to class fields (#6123)

This commit is contained in:
Anup
2017-08-16 19:42:38 +05:30
committed by Henry Zhu
parent 70ab2e0620
commit 6ab3b4c0e3
19 changed files with 27 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
var Foo = function Foo() {
babelHelpers.classCallCheck(this, Foo);
Object.defineProperty(this, "bar", {
configurable: true,
enumerable: true,
writable: true,
value: "foo"