diff --git a/src/languages/lib/ecmascript.js b/src/languages/lib/ecmascript.js index 742cbc3828..18e6814df7 100644 --- a/src/languages/lib/ecmascript.js +++ b/src/languages/lib/ecmascript.js @@ -157,6 +157,7 @@ export const BUILT_IN_VARIABLES = [ "localStorage", "sessionStorage", "module", + "self", "global" // Node.js ]; diff --git a/test/markup/javascript/built-in.expect.txt b/test/markup/javascript/built-in.expect.txt index 85293cd90c..ac31c9c3ec 100644 --- a/test/markup/javascript/built-in.expect.txt +++ b/test/markup/javascript/built-in.expect.txt @@ -1,4 +1,5 @@ let bi = BigInt('1'); let inf = Infinity Number(undefined) -let today = new Date() \ No newline at end of file +let today = new Date() +self diff --git a/test/markup/javascript/built-in.txt b/test/markup/javascript/built-in.txt index 59bf8299a2..8a16218a70 100644 --- a/test/markup/javascript/built-in.txt +++ b/test/markup/javascript/built-in.txt @@ -1,4 +1,6 @@ let bi = BigInt('1'); let inf = Infinity Number(undefined) -let today = new Date() \ No newline at end of file +let today = new Date() +self +