terremoth / msjscript-polyfill-ecma

Microsoft JScript version of JavaScript with Polyfills for common functions and objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECMAScript Polyfill for Microsoft JScript

Microsoft JScript version of JavaScript with Polyfills for common functions and objects.

Microsoft JScript (5.8, today) only provides these objects, with fewer functions than common JS today:

  • Object
  • WScript
  • Math
  • String
  • Boolean
  • Array
  • Number
  • Date
  • RegExp
  • Function (the function object itself)
  • Error
  • VBArray
  • Enumarator
  • Global
  • ActiveXObject

So the goal is to implement:

  • console
  • JSON
  • XmlHttoRequest
  • probably alert, prompt and confirm functions are possible through Wscript?
  • Request, Response and fetch (being wrappers to xmlhttprequest)
  • escape and unescape functions
  • WeakMap
  • Proxy
  • Symbol
  • Reflect
  • Map, Set, WeakMap and WeakSet
  • BigNum/BigInteger
  • Crypto API
  • Audio API
  • Intl API
  • Typed Arrays
  • ArrayBuffer, SharedArrayBuffer, DataView
  • "open" function to call web browser
  • setInterval / setTimeout
  • clearInterval / clearTimeout functions
  • atob / btoa functions
  • File and FileSystem API
  • ES5 functions polyfills
  • ES6 functions polyfills
  • ES2016 functions polyfills
  • ES2017 functions polyfills

Things that probably won't be possible to implement:

  • let, const
  • async, await, promises
  • classes and extends
  • import/export
  • of keyword
  • scheduler
  • sockets/websockets
  • Generator, yield

About

Microsoft JScript version of JavaScript with Polyfills for common functions and objects

License:MIT License


Languages

Language:JavaScript 99.5%Language:VBScript 0.4%Language:Batchfile 0.1%