mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
25 lines
467 B
JavaScript
25 lines
467 B
JavaScript
// this toplevel is not strict
|
|
|
|
// this function is not strict
|
|
function f() {
|
|
}
|
|
|
|
// this function is strict
|
|
function g() {
|
|
'use strict';
|
|
// this function is strict
|
|
function h() {
|
|
}
|
|
}
|
|
|
|
class C extends
|
|
(
|
|
console.log("Did you know `extends` clauses can contain arbitrary expressions?"),
|
|
// this function is strict
|
|
function k() {}
|
|
) {
|
|
// this function is strict
|
|
constructor() { this.x = 42; }
|
|
// this function is strict
|
|
l() { this.x = 23; }
|
|
} |