issue #2460: script compile error