5 ms·
IIRC, Traceur compiles to es5 which is not supported in IE 8. [edit] It's not clear to me that this project compiles to es3, but that was my assumption when re
by johnbender 12y ago
IIRC, Traceur compiles to es5 which is not supported in IE 8.
[edit] It's not clear to me that this project compiles to es3, but that was my assumption when reading "JavaScript that will work today".
- v413 12y agoLooking at the compiled source, it looks like ES5 and not ES3. They use "use strict" and Object.defineProperties which are ES5 features. P.S. IE9 doesn't support ES5 strict mode so "use strict" might introduce some subtle bugs for that case.
- skrebbel 12y agoCould you explain how? I thought "use strict" only added more runtime checking, but does not change the semantics. Wouldn't IE9 just interpret the line as a bogus expression and move on?
- Zardoz84 12y agoI use "use strict" on JavaScript that runs over IE8/9 and I don't get errors from it.
- girvo 12y agoThat's because "use strict" is ignored in IE8/9 (thankfully). You usually won't run into any issues, but if you're relying on strict-mode for certain semantics you can run into some very subtle bugs. The chances of that are super low though, I've only ever done it on purpose :)