mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
various cooking
This commit is contained in:
parent
3fb846036e
commit
408bf39ffd
11 changed files with 199 additions and 132 deletions
|
@ -1,11 +1,13 @@
|
|||
import { locationProxy } from "./location";
|
||||
import { windowProxy } from "./window";
|
||||
import { documentProxy, windowProxy } from "./window";
|
||||
|
||||
function scope(identifier: any) {
|
||||
if (identifier instanceof Window) {
|
||||
return windowProxy;
|
||||
} else if (identifier instanceof Location) {
|
||||
return locationProxy;
|
||||
} else if (identifier instanceof Document) {
|
||||
return documentProxy;
|
||||
}
|
||||
|
||||
return identifier;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue