Skip to content

Commit

Permalink
fix(reflect): fix target-is-object check
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktim committed May 2, 2016
1 parent c6fbc90 commit 841a64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect.js
Expand Up @@ -34,7 +34,7 @@ if (typeof Reflect.metadata !== 'function') {

if (typeof Reflect.defineProperty !== 'function') {
Reflect.defineProperty = function(target, propertyKey, descriptor) {
if (typeof target !== 'object') {
if (typeof target === 'object' ? target === null : typeof target !== 'function') {
throw new TypeError('Reflect.defineProperty called on non-object');
}
try {
Expand Down

0 comments on commit 841a64b

Please sign in to comment.