|
@ -1,6 +1,7 @@ |
|
|
import Scope from './Scope.js'; |
|
|
import Scope from './Scope.js'; |
|
|
import { unknown } from '../values'; |
|
|
import { unknown } from '../values'; |
|
|
|
|
|
|
|
|
|
|
|
// TODO represent things like Array, encodeURIComponent, Math, whatever
|
|
|
class SyntheticGlobalDeclaration { |
|
|
class SyntheticGlobalDeclaration { |
|
|
constructor ( name ) { |
|
|
constructor ( name ) { |
|
|
this.name = name; |
|
|
this.name = name; |
|
@ -21,7 +22,7 @@ class SyntheticGlobalDeclaration { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
call ( args ) { |
|
|
call ( args ) { |
|
|
// TODO assume args can be called?
|
|
|
return unknown; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
gatherPossibleValues ( values ) { |
|
|
gatherPossibleValues ( values ) { |
|
|