Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Fix stray references to window
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Jun 19, 2012
1 parent b76bead commit 5d349fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/JSIL.Bootstrap.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2308,7 +2308,7 @@ JSIL.ImplementExternals("System.Text.Encoding", function ($) {
resultBytes.push(byte); resultBytes.push(byte);
}, },
getResult: function () { getResult: function () {
if (window.Uint8Array) if (Uint8Array)
return new Uint8Array(resultBytes); return new Uint8Array(resultBytes);
else else
return resultBytes; return resultBytes;
Expand Down Expand Up @@ -4512,7 +4512,7 @@ JSIL.ImplementExternals("System.GC", function ($) {
}; };


var getMemoryImpl = function () { var getMemoryImpl = function () {
if (window.performance && window.performance.memory) { if (window && window.performance && window.performance.memory) {
return window.performance.memory.usedJSHeapSize; return window.performance.memory.usedJSHeapSize;
} else { } else {
warnIfNecessary(); warnIfNecessary();
Expand Down

0 comments on commit 5d349fe

Please sign in to comment.