Rhino error: Changing attributes not supported for Function prototype property

Author: aiCreated Jul 23, 2014Updated Dec 20, 2017

When I try to run compiled JS and Rhino (to run Autoprefixer into Java) it fall with:

Rhino::JSError:
       InternalError: Changing attributes not supported for Function prototype property
     # at <eval>:13904 (createClass)
     # at <eval>:14295
     # at <eval>:14279
     # at <eval>:13557

Line 13904 from this backtrace contains:

javascript
$defineProperty(ctor, 'prototype', {
  configurable: false,
  writable: false
});