• On line 13596 of mammoth-editor.js you have eval(obj);

    Apart from eval() being a function that’s really frowned upon, this produces a warning in the browser console that this will never run because you have a return statement right above it.

    Just deleting that line gets rid of the warning.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Williamson

    (@michaelwilliamson)

    Is this causing you any problems in using the plugin, or is it just producing a warning?

    Thread Starter KTS915

    (@kts915)

    I don’t know. I was debugging problems on someone else’s site. I don’t think he’d used the plugin for a while.

    But surely you’re not hoping to keep this code?

    Plugin Author Michael Williamson

    (@michaelwilliamson)

    That section of code isn’t in Mammoth itself: a bit of digging suggests it’s a performance optimisation in Bluebird. Since it’s not actually causing any issues, looking into further isn’t a priority for me at the moment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: unreachable code after return statement’ is closed to new replies.