padStart() function is undefined in new version 8

I am padding numbers with lead zeros. Let’s try executeScript_Sandbox -

return “1”.padstart(2, ‘0’);

[error] Line 1: undefined is not a function.

I am using latest version of Firefox and UI.Vision. It used to work before, what just happened?

I am confused. There is no Version 8 for Firefox yet. So do you use Chrome?

My bad! It’s 8.0.1 in Chrome, yes.

Padstart is an ecmascript 2017 feature (ES8). But the new executescript_sandbox commands supports only ECMAScript 2009 (ES5).

For more details & solutions please see this post, or executescript_sandbox

1 Like