Code Monkey home page Code Monkey logo

Comments (8)

rwaldron avatar rwaldron commented on September 2, 2024

I have a patch for this, but I just ran head-on into an issue where let throws in Opera:

Unhandled Error: at index 71: expected expression, got reserved word 'let'

Which is a parse error :(

from compat-table.

kangax avatar kangax commented on September 2, 2024

Looks like let works in Chrome (at least in my dev 19) only in strict mode.

from compat-table.

rwaldron avatar rwaldron commented on September 2, 2024

Sure does and I have a test for it, but the test throws in opera, because let is a reserved word.

from compat-table.

kangax avatar kangax commented on September 2, 2024

Well, surely nothing try/catch+eval can't fix? :)

from compat-table.

rwaldron avatar rwaldron commented on September 2, 2024

I'll push the branch and let you take a look ;)

from compat-table.

rwaldron avatar rwaldron commented on September 2, 2024

git checkout -b current-browser-let-test && git pull git://github.com/rwldrn/es5-compat-table.git current-browser-let-test

Hopefully you can identify anything I might've missed

from compat-table.

kangax avatar kangax commented on September 2, 2024

Thanks. I'll get to it tomorrow.

from compat-table.

kangax avatar kangax commented on September 2, 2024

I cleaned it up a little. Didn't find a way to prevent error in Opera. It's crazy how Opera claims that exception is unhandled even when handling it via try/catch. But the error is innocent, so I corrected layout and we should be all good to go.

Might be a good idea to add a note about Chrome only supporting let in strict mode...

from compat-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.