1
1
/*
2
-
2
+
3
3
*
4
4
* A minimal test double library for TDD with JavaScript
5
5
*
@@ -10085,13 +10085,17 @@ var _lodash = require('../../wrap/lodash');
10085
10085
10086
10086
var _lodash2 = _interopRequireDefault ( _lodash ) ;
10087
10087
10088
+ var _isPrimitiveLike = require ( './is-primitive-like' ) ;
10089
+
10090
+ var _isPrimitiveLike2 = _interopRequireDefault ( _isPrimitiveLike ) ;
10091
+
10088
10092
function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
10089
10093
10090
10094
exports . default = function ( thing ) {
10091
10095
var originalThing = thing ;
10092
10096
var props = { } ;
10093
10097
10094
- while ( ! isNativePrototype ( thing ) ) {
10098
+ while ( ! ( 0 , _isPrimitiveLike2 . default ) ( thing ) && ! isNativePrototype ( thing ) ) {
10095
10099
Object . getOwnPropertyNames ( thing ) . forEach ( function ( propName ) {
10096
10100
if ( ! props [ propName ] && propName !== 'constructor' ) {
10097
10101
props [ propName ] = Object . getOwnPropertyDescriptor ( thing , propName ) ;
@@ -10118,7 +10122,7 @@ var removeAbsentProperties = function removeAbsentProperties(props, originalThin
10118
10122
} ) ;
10119
10123
} ;
10120
10124
10121
- } , { "../../wrap/lodash" :336 } ] , 310 :[ function ( require , module , exports ) {
10125
+ } , { "../../wrap/lodash" :336 , "./is-primitive-like" : 311 } ] , 310 :[ function ( require , module , exports ) {
10122
10126
'use strict' ;
10123
10127
10124
10128
Object . defineProperty ( exports , "__esModule" , {
@@ -11287,7 +11291,7 @@ var ignoreMessage = function ignoreMessage(config) {
11287
11291
Object . defineProperty ( exports , "__esModule" , {
11288
11292
value : true
11289
11293
} ) ;
11290
- exports . default = '3.2.0 ' ;
11294
+ exports . default = '3.2.1 ' ;
11291
11295
11292
11296
} , { } ] , 335 :[ function ( require , module , exports ) {
11293
11297
'use strict' ;
0 commit comments