Skip to content

Commit 10dedaa

Browse files
Pessimistressdy
authored andcommitted
fix crash in strict mode
1 parent 65b7739 commit 10dedaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/descriptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Descriptor (str, options) {
3535

3636
//take over existing info
3737
if (str instanceof String) {
38-
extend(descriptor, str);
38+
extend(descriptor, pick(str, ['type', 'components', 'visible', 'complexity', 'include', 'optimize']));
3939
}
4040

4141
//take over options

0 commit comments

Comments
 (0)