Skip to content

Commit

Permalink
Removing unnecessary strict mode directives.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 9, 2015
1 parent 7fb74dd commit 49eb756
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@
var globals = getGlobal();
var globalIsFinite = globals.isFinite;
var supportsDescriptors = !!Object.defineProperty && arePropertyDescriptorsSupported();
var hasStrictMode = (function () {
'use strict';
return this === null;
}.call(null));
var hasStrictMode = (function () { return this === null; }.call(null));
var startsWithIsCompliant = startsWithRejectsRegex() && startsWithHandlesInfinity;
var _indexOf = Function.call.bind(String.prototype.indexOf);
var _toString = Function.call.bind(Object.prototype.toString);
Expand Down Expand Up @@ -1142,7 +1139,6 @@
defineProperties(Object, ObjectShims);

var assignHasPendingExceptions = supportsDescriptors && hasStrictMode && (function () {
'use strict';
// Firefox 37 still has "pending exception" logic in its Object.assign implementation,
// which is 72% slower than our shim, and Firefox 40's native implementation.
var thrower = { a: 1, b: 2, c: 3 };
Expand Down

0 comments on commit 49eb756

Please sign in to comment.