Skip to content

Commit b67ab83

Browse files
committed
test: add reproducible issue test of #54
1 parent 45672a8 commit b67ab83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ module.exports = [
137137
}
138138
}
139139
},
140+
{
141+
name: `only access real properties(#54)`,
142+
code: 'var a=function(){function t(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();',
143+
expected: {
144+
module: {},
145+
exports: {}
146+
}
147+
},
140148
{
141149
name: 'add a default property to the exported object',
142150
options: { addDefaultProperty: true },

0 commit comments

Comments
 (0)