JavaScript: Add support for globalThis.

This commit is contained in:
Max Schaefer
2019-05-10 08:28:51 +01:00
parent 9bc7ce1fac
commit a4bffe35fd
5 changed files with 9 additions and 0 deletions

View File

@@ -311,6 +311,9 @@ DataFlow::SourceNode globalObjectRef() {
// DOM and service workers
result = globalVarRef("self")
or
// ECMAScript 2020
result = globalVarRef("globalThis")
or
// `require("global")`
result = moduleImport("global")
or