diff --git a/lib/parser.js b/lib/parser.js index 07ebef98..7fa2fc58 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -35,7 +35,7 @@ var descriptor; descriptor = Object.create(null); descriptor.value = value; - descriptor.writeable = true; + descriptor.writable = true; descriptor.enumerable = true; descriptor.configurable = true; return Object.defineProperty(obj, key, descriptor); diff --git a/src/parser.coffee b/src/parser.coffee index a478a857..dade8f39 100644 --- a/src/parser.coffee +++ b/src/parser.coffee @@ -19,7 +19,7 @@ defineProperty = (obj, key, value) -> # make sure the descriptor hasn't been prototype polluted descriptor = Object.create null descriptor.value = value - descriptor.writeable = true + descriptor.writable = true descriptor.enumerable = true descriptor.configurable = true Object.defineProperty obj, key, descriptor