tbusser / jscc Goto Github PK
View Code? Open in Web Editor NEWThis is the website for the JavaScript Compatibility Checker
Home Page: http://jscc.info
This is the website for the JavaScript Compatibility Checker
Home Page: http://jscc.info
Array.from
was added to the ECMA-262 standard only in the 6th edition (ES2015).
It has serious issues in IE.
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from
IE 11 needs polyfill for fetch, for instance.
Very cool! What about creating a version of these checks as a standalone node module? That way it could be easily integrated into code sniffs or other static analysis tools.
Looks like the domain has expired
var sheets = window.document.styleSheets;
var defined;
for( var i = 0; i < sheets.length; i++ ){
if( sheets[ i ].href && sheets[ i ].href.indexOf( href ) > -1 ){
defined = true;
}
}
taken from https://github.com/filamentgroup/loadCSS/blob/master/loadCSS.js
let foo = 'a';
isn't considered problematic.
That's probably because it's ES6, so the issue title should maybe be I can haz ES6 support?.
can not scroll down to page end, when 'browsers' or 'filters' pane is opened
I didn't do thorough testing, but noticed a problem with some code and managed to create a simple example of a false negative:
function boo() {
return new Promise(function(resolve, reject) { resolve() }));
}
Based on all results, a summary would be great, one that shows the minimum compatibility across all browsers and across all results.
This is not supported in IE 11
x = `test`
Any chance you'd be willing to add the unmimified source to the repo? I'd love to help contribute.
Would it be possible to get the rules regexes made and used from a separate json file?
Found the website link, can't access it - the jscc.info domain doesn't have any DNS records.
I used the following code snippet:
Object.values(object).forEach((val) => this.zeroize(val));
The JavaScript Compatibility Checker has correctly recognized the use of Array.prototype.forEach
but it missed out on Object.values which finds only support in Chrome54+.
all the files in the static folder are unreadable!
It says the following code has no compatibility problems, but default parameters are well known not to work in IE.
function foo(x=4){return x*2}
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/default_parameters
This shows full compatibility with all browsers yet this has no support on IE11 (unsure of other browsers but I guess that's what this tool is meant to do for me ๐ )
var MY_ENUM={ABC:0, DEF:1, GHI:2};
var MY_MAP={[MY_ENUM.ABC]:false,[MY_ENUM.DEF]:true,[MY_ENUM.GHI]:false};
I pasted in some code that uses the dataset property, which is listed on Can I Use. JSCC says there are no problems, but dataset
is not supported in IE6-10.
JavaScript Compatibility Checker (shortname "jscc") clashes with the older project, JavaScript Compiler-Compiler (also shortnamed "jscc" or sometimes "js/cc"), [0][1]. Please consider renaming your project to avoid confusion between two great works. May I suggest ECMAScript Compatibility Checker ("escc") or ECMA-262 Compatibility Checker ("e262cc", "ecc", "262cc").
[0] http://jscc.sf.net/
[1] http://sourceforge.net/projects/jscc/
classes seem to be undetected
Please add Template literals checker.
var a = `test`; // test
var b = `test${a}`; // testtest
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.