Skip to content

Commit

Permalink
[Fix] In ES3 browsers (like Safari 4) Reflect.getPrototypeOf is und…
Browse files Browse the repository at this point in the history
…efined.
  • Loading branch information
ljharb committed Feb 16, 2016
1 parent 9f9ca09 commit 0b7783b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es6-shim.js
Expand Up @@ -3589,8 +3589,8 @@
Object.keys(ReflectShims).forEach(function (key) {
defineOrOverrideReflectProperty(key, ReflectShims[key]);
});
if (functionsHaveNames && globals.Reflect.getPrototypeOf.name !== 'getPrototypeOf') {
var originalReflectGetProto = globals.Reflect.getPrototypeOf;
var originalReflectGetProto = globals.Reflect.getPrototypeOf;
if (functionsHaveNames && originalReflectGetProto && originalReflectGetProto.name !== 'getPrototypeOf') {
overrideNative(globals.Reflect, 'getPrototypeOf', function getPrototypeOf(target) {
return _call(originalReflectGetProto, globals.Reflect, target);
});
Expand Down

0 comments on commit 0b7783b

Please sign in to comment.