Merge pull request #1937 from overleaf/spd-sandboxedmodule-global-console
Add 'console' to SandboxedModule globals GitOrigin-RevId: fad442ca128561a4fa193b929f217cf31ad0f043
This commit is contained in:
committed by
sharelatex
parent
9cc5dc968c
commit
238e2b2565
@@ -27,6 +27,9 @@ describe('MetaController', function() {
|
||||
getMetaForDoc: sinon.stub()
|
||||
}
|
||||
return (this.MetadataController = SandboxedModule.require(modulePath, {
|
||||
globals: {
|
||||
console: console
|
||||
},
|
||||
requires: {
|
||||
'logger-sharelatex': {
|
||||
log: sinon.stub(),
|
||||
|
||||
@@ -54,6 +54,9 @@ describe('MetaHandler', function() {
|
||||
}
|
||||
|
||||
return (this.MetaHandler = SandboxedModule.require(modulePath, {
|
||||
globals: {
|
||||
console: console
|
||||
},
|
||||
requires: {
|
||||
'../Project/ProjectEntityHandler': this.ProjectEntityHandler,
|
||||
'../DocumentUpdater/DocumentUpdaterHandler': this
|
||||
|
||||
Reference in New Issue
Block a user