Default Parameters on Functions Supported on JavaScript but not QCOPY

Skip to first unread message

Dennis Bareis

Apr 16, 2021, 11:47:36 PM4/16/21
to CopyQ

I think it might be implied in a few odd places but I don't think the language used by QCOPY is spelled out anywhere.  I'm not sure how to interpret this:
... JavaScript-similar scripting language (Qt Script is ECMAScript scripting language, currently equivalent to ES5)

If it is ES5 ECMAScript (2009) then that is the original version, any chance this is ever going to change?

QCOPY doesn't understand the "=" sign and expects a ")" in the following example:

function multiply(a, b = 1) {
  return a * b;

Lukáš Holeček

Apr 17, 2021, 1:04:50 AM4/17/21
to Dennis Bareis, CopyQ
CopyQ 4.0.0 uses same scripting language and engine as Qt QML [1][2]. I believe it supports ECMA-262 [3][4].

There are some new features added since previous CopyQ versions but it depends only on what Qt supports and I don't plan to change the engine again any time soon.

I'm going update the documentation.

You received this message because you are subscribed to the Google Groups "CopyQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages