语言

Menu
Sites
Language
error on minifing js files when building the project

when i try to build my project, it stops with this error on ".log" file:

!ENTRY org.tizen.web.compressor.minifier.core.JavaScriptMinifier$1 4 0 2013-12-29 16:36:13.826
!MESSAGE [2013.12.29 16:36:13][ERROR] JavaScriptMinifier.java(85) - 64 : 29 : missing name after . operator

this is because i have a ".delete()" method in my code wich is not allowed before ecmascript5. and JavaScriptMinifier seems not enabling it

my code is jsLint valide and can be compiled without error when using Google Closure compiler with  "--language_in=ECMASCRIPT5" arg

 

how can i make the minifier accept this code?

and will Tizen SDK use Google Closure compiler for more verbose output?

响应

2 回复
Lakshmi Grandhi

Currently Tizen doesn't support google closure compiler,  i guess current Tizen minifier is not compatiable with ECMASCRIPT5.

Moez Bouhlel

when i said ECMASCRIPT  5 (5.1), i mean the lastest stable specification of javascript supported on almost web browsers and  Tizen runtime engine

but it looks like it's missing on Tizen SDK js minifier