mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-20 16:41:04 +00:00
21 lines
517 B
JavaScript
21 lines
517 B
JavaScript
/*!
|
|
{
|
|
"name": "ES5 Strict Mode",
|
|
"property": "strictmode",
|
|
"caniuse": "use-strict",
|
|
"notes": [{
|
|
"name": "ECMAScript 5.1 Language Specification",
|
|
"href": "https://www.ecma-international.org/ecma-262/5.1/"
|
|
}],
|
|
"authors": ["@kangax"],
|
|
"tags": ["es5"],
|
|
"builderAliases": ["es5_strictmode"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Check if browser implements ECMAScript 5 Object strict mode.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('strictmode', (function() {'use strict'; return !this; })());
|
|
});
|