Skip to main content
WolfShade
Legend
January 16, 2019
Answered

DW indicates Javascript error - I don't see it

  • January 16, 2019
  • 2 replies
  • 778 views

Hello, all,

Nothing serious, here, just curious about something Dw is reporting.  I'm getting a Javascript error message at the top of the screen, and it's indicating the following line of pseudocode is the problem.

let q = [["A","1"],["B","2"],["C","3"]];

Of course, Dw doesn't tell me what the error is, just that it's an error.  But the function I'm playing with works, nothing shows in DevTools Console.  What does Dw see that neither I nor my browser see?

Just curious.

V/r,

^ _ ^

    This topic has been closed for replies.
    Correct answer osgood_

    can you use 'var' as DW doesnt support ES6 javascript

    Although I would not worry about it if you dont mind 'fake' errors being reported.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    January 16, 2019

    As of the October release, CC 2019 version does support ES6. 

    ES6 support

    New EcmaScript 6 support includes quick-type listing of classes, methods, arrow functions, and generator functions, as well as linting of ES6 code so you can work with the latest JavaScript updates.

    Nancy O'Shea— Product User & Community Expert
    osgood_Correct answer
    Legend
    January 16, 2019

    can you use 'var' as DW doesnt support ES6 javascript

    Although I would not worry about it if you dont mind 'fake' errors being reported.

    WolfShade
    WolfShadeAuthor
    Legend
    January 16, 2019

    That was it.  Changing let to var fixed it.  Thanks.

    And, sadly, I'm pedantic enough that I do mind 'fake' errors.  Annoying, but what can one do about it?

    Do you know if Adobe plans to support ES6 in future versions?  Or perhaps release updates that will allow Dw to work with ES6?  This issue cropped up in our DEV environment where we are using Dw CS5.5.

    OOOOh.. anyone know of any local files that we can edit to get ES6 support???    I'm bold enough to try it.

    V/r,

    ^ _ ^

    Legend
    January 16, 2019

    WolfShade  wrote

    Do you know if Adobe plans to support ES6 in future versions?  Or perhaps release updates that will allow Dw to work with ES6?  This issue cropped up in our DEV environment where we are using Dw CS5.5.

    I suspect the latest version of DW does support Es6. Maybe Nancy or Ben or Al can chime in.

    I don't use DW any longer apart from an old version which also showed the error when using 'let' so I was just guessing the version of DW you were using also was not compatible with Es6.