Files
codeql/javascript/ql/test/library-tests/Directives/tst.js
Matthew Costabile 0caa483925 change note and test
2026-05-05 13:20:39 +00:00

36 lines
664 B
JavaScript

'use strict'; // this is a directive
'use asm'; // and so is this
'bundle';// and this
'use server';
'use client';
'use memo';
'use no memo';
'use cache';
'use cache: remote';
'use cache: private';
{
'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
'bundle';
'use server';
'use client';
'use memo';
'use no memo';
'use cache';
'use cache: remote';
'use cache: private';
;
'use strict'; // but this isn't a directive
}
function g() {
"";
'use strict'; // this is a directive
}