Skip to content

Commit

Permalink
Don't break Chrome debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrrgc committed Apr 27, 2016
1 parent 75773a5 commit acee81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weakmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void function(global, undefined_, undefined){
define(Object, namedFunction('getOwnPropertyNames', function getOwnPropertyNames(obj){
// gh-43
var coercedObj = Object(obj), props;
if (coercedObj.toString() === '[object Window]') {
if ('toString' in coercedObj && coercedObj.toString() === '[object Window]') {
try {
props = getProps(obj);
} catch (e) {
Expand Down

0 comments on commit acee81f

Please sign in to comment.