Skip to content

Commit ee003fc

Browse files
committed
test: use strict mode in global setters test
test-global-setters.js was added in nodejs#26882 and hasn't been modified since. It appears that it avoids strict mode so that unscoped identifiers are treated as globals, but that's true in strict mode too. (In sloppy mode, an assignment to an undefined identifier will create a global, but that's not what this test does. In strict mode, those assignments will throw an error, which would seem to be what we would want.)
1 parent 1921371 commit ee003fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-global-setters.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable strict */
1+
'use strict';
22
require('../common');
33
const assert = require('assert');
44
const _process = require('process');

0 commit comments

Comments
 (0)