-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
146 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,71 @@ | ||
/* eslint-disable one-var */ | ||
/* eslint-disable no-multi-spaces */ | ||
/** | ||
* Add variables here that will be available as globals inside the scope during execution. | ||
* | ||
* @const | ||
* @type {String[]} | ||
*/ | ||
module.exports = [ | ||
|
||
const StandardBuiltIns = [ | ||
'Array', 'ArrayBuffer', 'Atomics', | ||
'BigInt', 'BigInt64Array', 'BigUint64Array', | ||
'Boolean', 'DataView', 'Date', | ||
'Error', 'EvalError', 'Float32Array', | ||
'Float64Array', 'Function', 'Infinity', | ||
'Int16Array', 'Int32Array', 'Int8Array', | ||
'BigInt', 'Boolean', 'DataView', | ||
'Date', 'Function', 'Infinity', | ||
'JSON', 'Map', 'Math', | ||
'NaN', 'Number', 'Object', | ||
'Promise', 'Proxy', 'RangeError', | ||
'ReferenceError', 'Reflect', 'RegExp', | ||
'Set', 'SharedArrayBuffer', 'String', | ||
'Symbol', 'SyntaxError', 'TypeError', | ||
'URIError', 'Uint16Array', 'Uint32Array', | ||
'Uint8Array', 'Uint8ClampedArray', 'WeakMap', | ||
'Promise', 'Proxy', 'Reflect', | ||
'RegExp', 'Set', 'SharedArrayBuffer', | ||
'String', 'Symbol', 'WeakMap', | ||
'WeakSet', 'decodeURI', 'decodeURIComponent', | ||
'encodeURI', 'encodeURIComponent', 'escape', | ||
'isFinite', 'isNaN', 'parseFloat', | ||
'parseInt', 'undefined', 'unescape' | ||
]; | ||
|
||
|
||
const Errors = [ | ||
'Error', 'EvalError', 'RangeError', | ||
'ReferenceError', 'SyntaxError', 'TypeError', | ||
'URIError' | ||
]; | ||
|
||
const TypedArrays = [ | ||
'BigInt64Array', 'BigUint64Array', 'Float32Array', | ||
'Float64Array', 'Int16Array', 'Int32Array', | ||
'Int8Array', 'Uint16Array', 'Uint32Array', | ||
'Uint8Array', 'Uint8ClampedArray' | ||
]; | ||
|
||
const UrlAPI = ['URL', 'URLSearchParams']; | ||
|
||
const EncodingAPI = [ | ||
'atob', 'btoa', | ||
'TextDecoder', 'TextDecoderStream', | ||
'TextEncoder', 'TextEncoderStream' | ||
]; | ||
|
||
const CryptoAPI = [ | ||
'Crypto', 'CryptoKey', | ||
'crypto', 'SubtleCrypto' | ||
]; | ||
|
||
const StreamsAPI = [ | ||
'ByteLengthQueuingStrategy', 'CountQueuingStrategy', | ||
'CompressionStream', 'DecompressionStream', | ||
'ReadableByteStreamController', 'ReadableStream', | ||
'ReadableStreamBYOBReader', 'ReadableStreamBYOBRequest', | ||
'ReadableStreamDefaultController', 'ReadableStreamDefaultReader', | ||
'TransformStream', 'TransformStreamDefaultController', | ||
'WritableStream', 'WritableStreamDefaultController', | ||
'WritableStreamDefaultWriter' | ||
]; | ||
|
||
/** | ||
* Add variables here that will be available as globals inside the scope during execution. | ||
* | ||
* @const | ||
* @type {String[]} | ||
*/ | ||
module.exports = [ | ||
...StandardBuiltIns, | ||
...Errors, | ||
...TypedArrays, | ||
...UrlAPI, | ||
...EncodingAPI, | ||
...CryptoAPI, | ||
...StreamsAPI | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters