Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mooz/detect-mozilla-js-dialect
Script for detecting mozilla js dialect's deprecated syntaxes
https://github.com/mooz/detect-mozilla-js-dialect
Last synced: about 1 month ago
JSON representation
Script for detecting mozilla js dialect's deprecated syntaxes
- Host: GitHub
- URL: https://github.com/mooz/detect-mozilla-js-dialect
- Owner: mooz
- Created: 2015-05-12T14:41:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T14:41:47.000Z (over 9 years ago)
- Last Synced: 2023-04-19T13:57:28.527Z (over 1 year ago)
- Language: Emacs Lisp
- Size: 203 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Script for detecting mozilla js dialect's deprecated syntaxes
Detect mozilla js dialect's deprecated syntaxes including *expression
closure* (`function (x) x * x`), *let expression* (`let (x = 10) x`),
and *let body* (`let (x = 10) { x };`).## Usage
Call `detect_mozilla_dialect.sh` with suspicious files,
./detect_mozilla_dialect.sh ./test/test.js
and the script outputs the following messages in *gcc's error message
style*../test/test.js:8: expression closure is deprecated
./test/test.js:3: let expression/body is deprecated## Deprecated syntaxes
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features
for the list of deprecated syntaxes.