worker-javascript force 'use strict'

122 views
Skip to first unread message

Кондаков Артем

unread,
May 25, 2016, 5:06:16 PM5/25/16
to Ace Internals Dev
I use the syntax checking in ace editor (worker-javascript). I need to use the syntax checking 'use strict' mode, but without a declaration "use strict" in the body of the code, How i can to do that?

Harutyun Amirjanyan

unread,
Jun 1, 2016, 3:16:22 PM6/1/16
to ace-in...@googlegroups.com
there is no built in method for this, you can try to find jshint option or modify https://github.com/ajaxorg/ace/blob/v1.2.3/lib/ace/mode/javascript_worker.js#L118 to prepend "use strict"​
Reply all
Reply to author
Forward
0 new messages