Files
codeql/javascript/ql/test/library-tests/Directives/tst.js
2018-08-02 17:53:23 +01:00

21 lines
416 B
JavaScript

'use strict'; // this is a directive
'use asm'; // and so is this
'bundle';// and this
{
'use strict'; // but this isn't a directive
}
'use asm'; // and neither is this
function f() {
'use\x20strict'; // this is a directive, though not a strict mode directive
'use asm'; // and so is this
;
'use strict'; // but this isn't a directive
}
function g() {
"";
'use strict'; // this is a directive
}