188 Private method to parse the given script and populate the data structure. |
188 Private method to parse the given script and populate the data structure. |
189 |
189 |
190 @param path path of the Javascript file (string) |
190 @param path path of the Javascript file (string) |
191 """ |
191 """ |
192 try: |
192 try: |
193 f = open(path) |
193 f = open(path, "r", encoding="utf-8") |
194 fileData = f.read() |
194 fileData = f.read() |
195 f.close() |
195 f.close() |
196 except (IOError, OSError): |
196 except (IOError, OSError): |
197 # silently ignore because it shouldn't happen |
197 # silently ignore because it shouldn't happen |
198 return |
198 return |