Commit f6c041d6 by Jocelyn Delalande

jupyterhub: force strict mode for all ijavascript code

parent 217345e6
......@@ -25,7 +25,7 @@ global.alert = function (msg) {
var runInThisContext = vm.runInThisContext;
vm.runInThisContext = function(code) {
runInThisContext("Fiber(function() {" + code + "}).run();");
runInThisContext("'use strict';Fiber(function() {" + code + "}).run();");
};
/** Synchronous sleep-like function for JavaScript
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment