Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix stray references to window

  • Loading branch information...
commit 5d349fe657210d5950fab84d5ce1c5d33dbaf52c 1 parent b76bead
@kg kg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Libraries/JSIL.Bootstrap.js
View
4 Libraries/JSIL.Bootstrap.js
@@ -2308,7 +2308,7 @@ JSIL.ImplementExternals("System.Text.Encoding", function ($) {
resultBytes.push(byte);
},
getResult: function () {
- if (window.Uint8Array)
+ if (Uint8Array)
return new Uint8Array(resultBytes);
else
return resultBytes;
@@ -4512,7 +4512,7 @@ JSIL.ImplementExternals("System.GC", function ($) {
};
var getMemoryImpl = function () {
- if (window.performance && window.performance.memory) {
+ if (window && window.performance && window.performance.memory) {
return window.performance.memory.usedJSHeapSize;
} else {
warnIfNecessary();
Please sign in to comment.
Something went wrong with that request. Please try again.