@masknet/compartment
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -1,2 +0,2 @@ | ||
export declare function makeGlobalThis(prototype: object | null): typeof globalThis; | ||
export declare function makeGlobalThis(prototype?: object | null): typeof globalThis; | ||
//# sourceMappingURL=makeGlobalThis.d.ts.map |
import { Evaluators } from '../Evaluators.js'; | ||
import { ModuleSource } from '../ModuleSource.js'; | ||
export function makeGlobalThis(prototype) { | ||
export function makeGlobalThis(prototype = Object.prototype) { | ||
const global = Object.create(null); | ||
@@ -5,0 +5,0 @@ Object.defineProperties(global, intrinsic.reduce((previous, name) => { |
{ | ||
"name": "@masknet/compartment", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
import { Evaluators } from '../Evaluators.js' | ||
import { ModuleSource } from '../ModuleSource.js' | ||
export function makeGlobalThis(prototype: object | null): typeof globalThis { | ||
export function makeGlobalThis(prototype: object | null = Object.prototype): typeof globalThis { | ||
const global = Object.create(null) | ||
@@ -6,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
161114