Skip to content

Commit dd64b11

Browse files
committed
integrity execution fix
1 parent 8e2f254 commit dd64b11

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/global-eval.js

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ var __exec;
5252
var curSystem;
5353
var callCounter = 0;
5454
function preExec(loader, load) {
55+
curLoad = load;
5556
if (callCounter++ == 0)
5657
curSystem = __global.System;
5758
__global.System = __global.SystemJS = loader;

test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1090,11 +1090,11 @@ asyncTest('Importing a script with wrong integrity fails', function() {
10901090
}
10911091
});
10921092
System['import']('tests/csp/integrity.js').then(function(m) {
1093-
ok(true);
1094-
console.log('SRI not supported in this browser');
1093+
ok(m.integrity == 'integrity');
10951094
start();
10961095
}, function(e) {
10971096
ok(typeof e !== 'undefined');
1097+
console.log('SRI not supported in this browser');
10981098
start();
10991099
});
11001100
});

0 commit comments

Comments
 (0)