Skip to content

Commit a6159ff

Browse files
committedMar 13, 2021
Fix indentation in the test from #2912
1 parent 798eafa commit a6159ff

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
 

‎test/utility.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -466,18 +466,18 @@
466466
});
467467

468468
QUnit.test('#2911 - _.template must not trigger CVE-2021-23337.', function(assert) {
469-
QUnit.holyProperty = 'holy';
470-
var invalidVariableNames = [
471-
'){delete QUnit.holyProperty}; with(obj',
472-
'(x = QUnit.holyProperty = "evil"), obj',
473-
'document.write("got you!")'
474-
];
475-
_.each(invalidVariableNames, function(name) {
476-
assert.throws(function() { _.template('', { variable: name })(); });
477-
});
478-
var holy = QUnit.holyProperty;
479-
delete QUnit.holyProperty;
480-
assert.strictEqual(holy, 'holy');
469+
QUnit.holyProperty = 'holy';
470+
var invalidVariableNames = [
471+
'){delete QUnit.holyProperty}; with(obj',
472+
'(x = QUnit.holyProperty = "evil"), obj',
473+
'document.write("got you!")'
474+
];
475+
_.each(invalidVariableNames, function(name) {
476+
assert.throws(function() { _.template('', { variable: name })(); });
477+
});
478+
var holy = QUnit.holyProperty;
479+
delete QUnit.holyProperty;
480+
assert.strictEqual(holy, 'holy');
481481
});
482482

483483
}());

0 commit comments

Comments
 (0)
Please sign in to comment.