Skip to content

Commit

Permalink
fix typeof O
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed Mar 9, 2018
1 parent 43a0282 commit b50ea56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
return function(O) {
// 1. If Type(O) is not Object or Null throw a TypeError exception.
if ( typeof O != 'object') {
throw TypeError('Object prototype may only be an Object or null. The type is ' + typeof (0));
throw TypeError('Object prototype may only be an Object or null. The type is ' + typeof (O));
}

// 2. Let obj be the result of creating a new object as if by the
Expand Down

0 comments on commit b50ea56

Please sign in to comment.