mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Fix global variable assignment in JS test suite
In test_imgproc.js, the test_filter suite's last test assigns a variable to `size` without declaring it with `let`, polluting the global scope. This commit adds `let` to the statement, so that the variable is scoped to the test block.
This commit is contained in:
parent
667e5e4f89
commit
646025589b
@ -948,7 +948,7 @@ QUnit.test('test_filter', function(assert) {
|
||||
|
||||
cv.rotate(src, dst, cv.ROTATE_90_CLOCKWISE);
|
||||
|
||||
size = dst.size();
|
||||
let size = dst.size();
|
||||
assert.equal(size.height, 2, "ROTATE_HEIGHT");
|
||||
assert.equal(size.width, 3, "ROTATE_WIGTH");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user