AMD and CMD is dead the kmdjs core of the semicolon

Source: Internet
Author: User

In the old version of Kmdjs, the requirement for semicolons was enforced. But always feel uncomfortable, because in the development of Ket-kmdjs Extension tools, always need to import some open source Library, and then the pain came, always error, a check, is missing semicolon!! Later, you can JSLint can detect where the semicolon is missing, then you can use JSLint in the missing place to add a semicolon? JSLint as a library to use, rather than tools, so immediately looked at the JSLint source code, and then a section:

The above program depends on: http://jslint.com/webjslint.js

During the period also encountered, part of the program added a semicolon, part of the program did not add, a check reason: too many error!! Detect interrupts! The solution is to increase the jslint tolerance limit, such as setting the JSLint to tolerate 10,000 errors:

Jslint.jslint (Codestr, {maxerr:10000});

Then the next version of Kmdjs will no longer force the semicolon to end, are you lazy? No problem, Kmdjs automatically help you to add a semicolon!

Where's ket? It's not far.

Github:https://github.com/kmdjs/kmdjs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.