# ECMAScript Edition 11 Error - no globals like 'items' populated

**URL:** <https://community.openhab.org/t/ecmascript-edition-11-error-no-globals-like-items-populated/130532>\
**Category:** Scripts & Rules\
**Tags:** ecma\
**Created:** [December 24, 2021, 11:40am UTC](https://community.openhab.org/t/ecmascript-edition-11-error-no-globals-like-items-populated/130532 "2021-12-24T11:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ssalonen](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/76d3ee/32.png) [@ssalonen](https://community.openhab.org/u/ssalonen)\
**Post date:** [December 24, 2021, 3:11pm UTC](https://community.openhab.org/t/ecmascript-edition-11-error-no-globals-like-items-populated/130532/5 "2021-12-24T15:11:42Z")

</div>

Migration is also discussed in [Migrate from Nashorn to JSScripting for UI Rules](https://community.openhab.org/t/migrate-from-nashorn-to-jsscripting-for-ui-rules/129788)

I think the `@runtime` provides backwards compatible `items` and such.

---

_[View the full topic](https://community.openhab.org/t/ecmascript-edition-11-error-no-globals-like-items-populated/130532)._
