Patch Photoshop javascript core

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

dady
Posts: 1
Joined: Thu Sep 22, 2016 9:55 pm

Patch Photoshop javascript core

Post by dady »

Hello, everybody.
I write scripts that automates some routine work of designers, that works with Photoshop. And by the time, i have noticed that some part of my code repeats from project to project, so i decided to wrap it into reusable modules.

I choose npm-packages (node.js) for that purpose. And it opened a great opportunity of using other npm-packages (CSV parser for example) in my projects! And moreover, to use webpack to make production builds of my scripts, minify, lint and test my scripts in automated way. But i faced with some difficulties in my way to bright future :) .
The point is that Photoshop (CS family) uses extension of es3 standard (if i am not mistaken), and i want to patch it to es5 standard as much as possible. There is several polyfills for js engine, like: But, all of them designed with browsers (as a context of execution) in mind. Some of them seems to work fine in Photoshop environment, but i want to be more confident in that.
Some polyfills developers supplies their libs with automated tests, it could solve my problem, but they (tests) also assume browser as environment, so it is hard to launch this tests in Photoshop for me.
Well, i need help in making a list of polyfills that could be safely applied to Photoshop script engine, can anybody help me?