Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed crash on Win32

  • Loading branch information...
commit 8981aa8633cf0a15b8b598d62800d9dfee764dc5 1 parent 0931a6d
@sergeche authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 emmet/context.py
View
8 emmet/context.py
@@ -166,11 +166,15 @@ def js(self):
if self._use_unicode is None:
self._use_unicode = should_use_unicode()
+ glue = u'\n' if self._use_unicode else '\n'
+ core_src = [self.read_js_file(make_path(f)) for f in self._core_files]
+
self._ctx = PyV8.JSContext()
self._ctx.enter()
+ self._ctx.eval(glue.join(core_src))
- for f in self._core_files:
- self._ctx.eval(self.read_js_file(make_path(f)), name=f, line=0, col=0)
+ # for f in self._core_files:
+ # self._ctx.eval(self.read_js_file(make_path(f)), name=f, line=0, col=0)
# load default snippets
self._ctx.locals.pyLoadSystemSnippets(self.read_js_file(make_path('snippets.json')))
Please sign in to comment.
Something went wrong with that request. Please try again.