Skip to content

Conversation

etpinard
Copy link
Contributor

This PR fixes a bug showing in browserify-transformed ndarray-fill with uglify-js@2.8.x.

This bug was first reported in plotly/plotly.js#1450 (comment) and was introduced in mishoo/UglifyJS#1450 which was published as part of uglify-js@2.8.0. For more info on the { unused: "keep_assign" } rule see the compressor options. In essence, without that unused setting the compiled block removes the _inline_1_arg1_ references:

image

This PR also adds tests for fill-like operations similar to ndarray-fill.

- this fixes browserify-transformed ndarray-fill with uglify-js@2.8.x
- see https://github.com/mishoo/UglifyJS2/pull/1450/files
  for more details
- add test
@rreusser rreusser merged commit 3fe6bc8 into scijs:master Mar 14, 2017
etpinard added a commit to etpinard/ndarray-fill that referenced this pull request Mar 14, 2017
- to ensure scijs/cwise#13
  is included.
@etpinard etpinard deleted the fix-for-uglify-2.8.x branch March 14, 2017 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants