broccoli-use-strict-remover

1.1.0 • Public • Published

broccoli-use-strict-remover

Build Status

Broccoli plugin that removes 'use strict'; from modules when REMOVE_USE_STRICT: true is present.

DO NOT USE THIS OTHER THAN TO WORK AROUND this BUG.

Background

In some cases optimized Object.create in 'use strict' context sometimes breaks on ARMv7 iOS 8.x devices. This package allows easier fine-grained removal of strict mode on a per-file basis.

In Ember we Work around the bug identified in https://bugs.webkit.org/show_bug.cgi?id=138038, by removing 'use strict'; from modules where Object.create is called directly (in the case of Ember.CoreObject this occurs after inlining).

ZOMG!!! TESTS?!?!!?

I know, right?

Running the tests:

npm install
npm test

License

This project is distributed under the MIT license.

Package Sidebar

Install

npm i broccoli-use-strict-remover

Weekly Downloads

61

Version

1.1.0

License

MIT

Last publish

Collaborators

  • rwjblue
  • stefanpenner