Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
feat: no more provider global object by default
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Apr 29, 2018
1 parent fc6d09d commit d781451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
7 changes: 2 additions & 5 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ export interface ISandBox {

declare const WebAssembly: any;

import g from "./global";

const UNDEFINED: string = "undefined";

// ECMA standar refs: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects
Expand Down Expand Up @@ -33,7 +31,7 @@ export const DEFAULT_CONTEXT: ISandBox = {
NaN,
Number,
["null"]: null,
["undefined"]: undefined,
[UNDEFINED]: void 0,
Object,
parseFloat,
parseInt,
Expand All @@ -46,8 +44,7 @@ export const DEFAULT_CONTEXT: ISandBox = {
SyntaxError,
TypeError,
unescape,
URIError,
global: g
URIError
};

// need to polyfill by user
Expand Down
11 changes: 0 additions & 11 deletions src/global.ts

This file was deleted.

0 comments on commit d781451

Please sign in to comment.